SysAdmin


Manage FSMO Roles with Powershell

Manage FSMO Roles with Powershell


Posted By on May 22, 2015

To transfer all 5 of the FSMO roles simply run the following command in PowerShell: Move-ADDirectoryServerOperationMasterRole -Identity “DC_HOSTNAME” –OperationMasterRole PDCEmulator,RIDMaster,InfrastructureMaster,SchemaMaster,DomainNamingMaster To shorten the command line syntax you can use role numbers in place of the role names.  The following list details the role number for each of the five FSMO roles. PDC Emulator – 0 RID Master...

Read More
List FSMO Roles

List FSMO Roles


Posted By on May 22, 2015

This tip explains several ways to check FSMO Roles availability in an Active Directory Forest environment.   To get the list of FSMO Roles using NetDom command line tool, run the following command: Netdom Query FSMO And using DSQuery tools DSQuery server –hasfsmo –pdc DSQuery server –hasfsmo –infr DSQuery server –hasfsmo –rid DSQuery server –hasfsmo –name DSQuery server –hasfsmo –schema DSQuery command returns the FSMO holder...

Read More

Offline database and gracefully close connections : ALTER DATABASE "DATABASE_NAME" SET OFFLINE 12 ALTER DATABASE "DATABASE_NAME"SET OFFLINE   Offline database and close all connections immediately : ALTER DATABASE "DATABASE_NAME" SET OFFLINE WITH ROLLBACK IMMEDIATE 12 ALTER DATABASE "DATABASE_NAME"SET OFFLINE WITH ROLLBACK IMMEDIATE...

Read More

To download a web page using powershell and a scheduled task you must do the following : 1. Open Task Scheduler 2. Right click where your existing Tasks are and click Create a new task 3. Give it a name, and description 4. By default the job will run as whatever user you’re logged in as.  If you don’t want this click the “Change User or Group” button to select the user you’d like the job to run as. 5....

Read More

I’ve been working with the Task Scheduler Managed Wrapper project on code plex.  While I’ve found this project extremely useful I hit a couple of snags that I figured I’d outline here to help you make use of this library as quickly as possible. 1. Allow scheduled task user to “Log on as a batch job” – When you create a scheduled task you usually run as the user who created the task, or set to run as...

Read More

Are you running mRemoteNG and noticed that you can’t open more than 6 Windows Server 2012 Tabs?  Apparently there is a known issue with mRemoteNG not being Large Address aware.  To fix this you’ll need Visual Studio installed on your local computer where you’re running mRemoteNG and perform the following steps.   1.  In Windows Explorer navigate to C:\Program Files (x86)\Microsoft Visual Studio...

Read More