Introducing Windows Server 2012 (RTM Edition) eBook
Building the next generation file system for Windows: ReFS
Storage Spaces Overview
Start PowerShell as administrator - Start-Process powershell -verb runas (or just start)
PWA - PowerShell Web Access (new 2012 feature)
- run administrator PowerShell
- install-pswaWebApplication -UseTestCertificate
- get-PSSessionConfiguration (microsoft.powershell)
- Add-PswaAuthorizationRule -UserName 'company\administrator' -ComputerGroupName * -ConfigurationName 'microsoft.powershell'
- https://localhost/pswa
or Technet article - Deploy Windows PowerShell Web Access
Get-module -Listavailable < list of major areas to be configured
$psversiontable - current version of PS running (or $PSVersionTable.PSVersion) or $host.Version
By default PowerShell does not come with help > run update-help or save-help c:\pshelp -verbose and
update-help -SourcePath C:\pshelp
eBook - Secrets of PowerShell remoting
Enable-PSRemoting - starts / re-starts WinRM - might need to use -SkipNetworkProfileCheck parameter on Win 7/8 as the firewall exception will not be enabled if any of the network adapters are set to Public network (i.e. - VMware workstation)
Enter-PSSession -ComputerName <computername> / Exit-PSSession
2nd Hop remoting isn't enabled by default - Enable-WSManCredSSP
Managed Service Accounts - Introduced with Windows Server 2008 R2
New-ADServiceAccount - Service Accounts Step-by-Step Guide (2k8) - Getting Started with Group Managed Service Accounts (2k12)
Server GUI <-> Core switch - Windows Server 2012 Installation Options
import-module server-manager
Uninstall-WindowsFeature server-gui-mgmt-infra, server-gui-shell -restart [-remove] (removes payload = deletes files)
Install new / removed feature
- option 1 - install-windowsfeature xps-viewer -source d:\source\install.wim:4 (where d: is CD-ROM/DVD drive)
- option 2 - use dism - Deployment Image Servicing and Management Tool
dism /get-wiminfo /wimfile:d:\sources\install.wim
- get index of the OS you're interested in, needed in the next step
- make c:\source folder
dism /mount-wim /wimfile:d:\sources\install.wim /index:4 /mountdir:c:\source /readonly
install-windowsfeature xps-viewer -source c:\source\Windows\WinSXS
Additional Resources:
Commands and Tools for Managing Windows Server 2008 Server Core
Using Server Core for Windows Server 2012
Command Line Reference
Windows Server 2012 creates System Reserved partition 350MB (2008 Server / Win 7 = 100MB this is for bootstrap and bitlocker)
What is the Windows Server 2008 R2 / Windows 7 System Reserved Partition?
Creating/Removing a Windows 2008 R2 Server without 100 MB System Reserved Partition
1.Once Windows 7 Setup is loaded, press Shirt + F10 keys at the first setup screen (which allows selection of language, keyboard and locale). A Command Prompt window will be opened.
2.Run Diskpart, the built-in disk partitioning tool of Windows 2008 R2 with the following command: diskpart
3.Type in the following command one by one, follow by Enter key to create a partition (text in brackets are comments only):
- list disk (to show the ID number of the hard disk to partition, normally is Disk 0)
- select disk 0 (change 0 to another number if applicable)
- clean
- create partition primary size=102400
(create a partition with 100 GB space; to use entire disk as one partition, omit the “size=value” parameter switch ” create partition primary”)
- select partition 1
- active
- format fs=ntfs quick
- exit
4.Type exit at command prompt to close Command Prompt window.
5.Continue installation select the partition just created when come to partition screen.
Removing the 100Mb System Reserved Partition from Windows 7 and Windows 2008 R2
1. Run the command prompt with administrator privileges - type:
- bcdboot c:\windows /s c:
Out put will be similar to: Boot files successfully created.
2. Run diskpart
- select disk 0
- select partition 1
- active
Or Disk Management(diskmgmt.msc) GUI , locate the C:\ partition right-click and select “Mark Partition as Active”, select yes to the “do you want to continue message”
3. Reboot to confirm that everything is ok.
4. if you want you can delete the partition
Building the next generation file system for Windows: ReFS
Storage Spaces Overview
Start PowerShell as administrator - Start-Process powershell -verb runas (or just start)
PWA - PowerShell Web Access (new 2012 feature)
- run administrator PowerShell
- install-pswaWebApplication -UseTestCertificate
- get-PSSessionConfiguration (microsoft.powershell)
- Add-PswaAuthorizationRule -UserName 'company\administrator' -ComputerGroupName * -ConfigurationName 'microsoft.powershell'
- https://localhost/pswa
or Technet article - Deploy Windows PowerShell Web Access
Get-module -Listavailable < list of major areas to be configured
$psversiontable - current version of PS running (or $PSVersionTable.PSVersion) or $host.Version
By default PowerShell does not come with help > run update-help or save-help c:\pshelp -verbose and
update-help -SourcePath C:\pshelp
eBook - Secrets of PowerShell remoting
Enable-PSRemoting - starts / re-starts WinRM - might need to use -SkipNetworkProfileCheck parameter on Win 7/8 as the firewall exception will not be enabled if any of the network adapters are set to Public network (i.e. - VMware workstation)
Enter-PSSession -ComputerName <computername> / Exit-PSSession
2nd Hop remoting isn't enabled by default - Enable-WSManCredSSP
Managed Service Accounts - Introduced with Windows Server 2008 R2
New-ADServiceAccount - Service Accounts Step-by-Step Guide (2k8) - Getting Started with Group Managed Service Accounts (2k12)
Server GUI <-> Core switch - Windows Server 2012 Installation Options
import-module server-manager
Uninstall-WindowsFeature server-gui-mgmt-infra, server-gui-shell -restart [-remove] (removes payload = deletes files)
Install new / removed feature
- option 1 - install-windowsfeature xps-viewer -source d:\source\install.wim:4 (where d: is CD-ROM/DVD drive)
- option 2 - use dism - Deployment Image Servicing and Management Tool
dism /get-wiminfo /wimfile:d:\sources\install.wim
- get index of the OS you're interested in, needed in the next step
- make c:\source folder
dism /mount-wim /wimfile:d:\sources\install.wim /index:4 /mountdir:c:\source /readonly
install-windowsfeature xps-viewer -source c:\source\Windows\WinSXS
Additional Resources:
Commands and Tools for Managing Windows Server 2008 Server Core
Using Server Core for Windows Server 2012
Command Line Reference
Windows Server 2012 creates System Reserved partition 350MB (2008 Server / Win 7 = 100MB this is for bootstrap and bitlocker)
What is the Windows Server 2008 R2 / Windows 7 System Reserved Partition?
Creating/Removing a Windows 2008 R2 Server without 100 MB System Reserved Partition
1.Once Windows 7 Setup is loaded, press Shirt + F10 keys at the first setup screen (which allows selection of language, keyboard and locale). A Command Prompt window will be opened.
2.Run Diskpart, the built-in disk partitioning tool of Windows 2008 R2 with the following command: diskpart
3.Type in the following command one by one, follow by Enter key to create a partition (text in brackets are comments only):
- list disk (to show the ID number of the hard disk to partition, normally is Disk 0)
- select disk 0 (change 0 to another number if applicable)
- clean
- create partition primary size=102400
(create a partition with 100 GB space; to use entire disk as one partition, omit the “size=value” parameter switch ” create partition primary”)
- select partition 1
- active
- format fs=ntfs quick
- exit
4.Type exit at command prompt to close Command Prompt window.
5.Continue installation select the partition just created when come to partition screen.
Removing the 100Mb System Reserved Partition from Windows 7 and Windows 2008 R2
1. Run the command prompt with administrator privileges - type:
- bcdboot c:\windows /s c:
Out put will be similar to: Boot files successfully created.
2. Run diskpart
- select disk 0
- select partition 1
- active
Or Disk Management(diskmgmt.msc) GUI , locate the C:\ partition right-click and select “Mark Partition as Active”, select yes to the “do you want to continue message”
3. Reboot to confirm that everything is ok.
4. if you want you can delete the partition