Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.22 KB

File metadata and controls

61 lines (41 loc) · 1.22 KB

Unsorted Commands

Put any new commands into this file and they will be sorted and linked on the main readme

Rename Domain Controller

netdom computername <OldName> /add:<NewName>

netdom computername <OldName> /makeprimary:<NewName>

shutdown /r /t 0

Once system has restarted

netdom computername <NewName> /remove:<OldName>

Set Service Principal Names - Virtual System Migration

This will need to be done on both machines in order to have a relationship XXX - Name of Server(s)

SETSPN -s "Microsoft Virtual System Migration Services/XXX" XXX

BC Web Cache stuffs

How to Publish Web Content

Get-BCStatus
Publish-BCWebContent -Path "(Web Content Location)" -StageData
Export-BCCachePackage -Destination "(Where you want to store it)"
Import-BBCachePackage "(Whatever Location you stored the file)"

How to find what groups a user account is a member of?

Get-ADPrincipleGroupMembership

What user accounts have access to a resource?

Get-ADGroupmember -Identify -Recursive

WMI Query

# Select XP Pro from WMI Object
SELECT * FROM Win32_OperatingSystem WHERE Caption = "Microsoft Windows XP Professional"

#
SELECT