Go Premium for a chance to win a PS4. Enter to Win

x

Powershell

16K

Solutions

7K

Contributors

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.

Share tech news, updates, or what's on your mind.

Sign up to Post

Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
0
 
LVL 24

Expert Comment

by:Tom Cieslik
Comment Utility
Very useful information but I don't get it one thing:

Move-ADDirectoryServerOperationMasterRole -Identity “TCLDC01”
- -identity is a TARGET server right ? So this is a server where role will be transfered to.

Move-ADDirectoryServerOperationMasterRole -Identity “Target_DC_name”

So if yes, then why you checking other server if all roles were moved

All 5 Roles has been transferred to TCLDC02

Or maybe I don't get it.
0
Keep up with what's happening at Experts Exchange!
LVL 11
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
0
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
0
A walk-through example of how to obtain and apply new DID phone numbers to your cloud PBX enabled users that are configured in Office 365. Whether you have 1, 10 or 100+ users in your tenant, it's quite easy to get them phone-enabled and making/receiving phone calls.
0
GPO Monitor
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed or changed with an option for email notifications.
2
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
1
 
LVL 10

Author Comment

by:Sunil Chauhan
Comment Utility
0
 

Expert Comment

by:sankara parameswaran
Comment Utility
still inbox rule executing and did not provide any result. Hope it will complete and some results. we are running for office365
1
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
2
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes. We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that with a PowerShell script.
0
Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract user data, including hashes from an IFM backup.
4
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
2
 
LVL 15

Author Comment

by:Greg Besso
Comment Utility
So IMO this is a great example of a project where you can "divide and conquer". You have a few different parts...

First, you have your method of deploying Office 365 ProPlus. This article shows my method of getting that done. Just download the scripts, tweak them to meet your needs/environment, and then it's all set.

Second, you have the "how will I install this remotely on many computers" step. For me, I rolled my own SCCM type of solution which is a set of scripts that I also have up on my blog that I called "PSMANAGE" scripts. It's an evolving project of mine, but check it out if you like.

Another tool I used to push out software remotely was this PS Tools PsExec.exe. You could remotely push a command to any workstation that was online, such as telling it to run your silentInstall.bat file. Check that out also:

https://technet.microsoft.com/en-us/sysinternals/pstools.aspx
1
 
LVL 8

Expert Comment

by:Senior IT System Engineer
Comment Utility
Thanks, Greg, you are amazing :-)
let us know once you've shared the new script of yours.
0
Windows Server 2016: All you need to know
LVL 1
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes with Storage Spaces Direct on it.
1
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
0
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
1
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
1
 
LVL 8

Expert Comment

by:Senior IT System Engineer
Comment Utility
Does the user will notice any performance issue when the scanning is running ?
0
 
LVL 9

Author Comment

by:Frank McCourry
Comment Utility
Performance degradation is relative only to the number of paths and at what level you enter that path.  It is the equivalent of performing a non-indexed search on the users computer.  If you keep the search path narrow, the user will probably not even notice.  If you start at the root, I guarantee that your phone will ring.  

This script was designed to find a specific file in specific locations, thereby limiting the amount of hard drive activity it causes on the end users computer.  I run this once a month or so and have had no complaints.
0
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
0
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that allow you to create installations of Nano Server.
0
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
1
 

Expert Comment

by:Abhinav veluvarthy
Comment Utility
Good work. It helped me.
thanks
0
The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
1
 
LVL 8

Expert Comment

by:Senior IT System Engineer
Comment Utility
Hi SCCMCanuck,

Which of the Powershell line that I can edit safely to suit my environment ?
0
 
LVL 9

Author Comment

by:SCCMCanuck
Comment Utility
Thanks for your interest. At the moment the following lines are safe to change

[version]$InstallerVersion = '8.0.1210.13'
$AppName = 'Java*'

The value of $AppName variable is a wildcard string that corresponds with the DisplayName registry value, where as $InstalledVersion corresponds to DisplayVersion.

You can modify any part of the script to accommodate any type of detection method and use and/or statements to create a more restrictive set of criteria. The goal of my example is to make the SCCM client agent believe that Java is installed if its version is greater than or equal to the value of $InstallerVersion in the Variable Declaration section

Registry.PNG
1
A brief introduction to what I consider to be the best editor for PowerShell.
0
Learn Veeam advantages over legacy backup
LVL 1
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
0
 
LVL 20

Expert Comment

by:Walter Curtis
Comment Utility
Great information. Thanks! Recommended reading for all SharePoint people. This should be submitted as an article.

Have a good one...
1
A procedure for exporting installed hotfix details of remote computers using powershell
2
 
LVL 8

Expert Comment

by:Senior IT System Engineer
Comment Utility
Thanks for sharing !
0
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office 365 via Windows PowerShell using Exchange Online tr
1
PowerShellAutomation
This article will help you understand what HashTables are and how to use them in PowerShell.
0
 
LVL 71

Expert Comment

by:Qlemo
Comment Utility
Note that starting with PS 4 you do not need to use [Ordered] with [PSCustomObject], as the sequence gets preserved already.
And there is a lot more to say about hashtables, of course ...
0
Synchronize a new Active Directory domain with an existing Office 365 tenant
1
Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
2

Powershell

16K

Solutions

7K

Contributors

Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.