powershell

  • to execute powershell as administrator

  • right click 'Run As Administrator'

  • ctrl+r » powershell » ctrl + shift + enter

  • to verify powershell running as admin

basic

echo

references

profile

[!NOTE|label:references:]

running powershell script

[!NOTE|label:references:]

powershell 7

[!NOTE|label:references:]

for restriction

upgrade

system

check current user is admin

check current permissions
  • or

  • others

maximum path length limitation

  • or via modify regedit

list installed appx

  • or search via keywords

  • or

    • or exclude all ms-

  • or show name and display name

install system apps

restricted strategy

  • check policy

  • modify policy

  • revert to previous policy

enable pxe on the distribution point

scan health and restore health

execute searching diagnostic

defragment the index database

reinstall windows search

reinstall cortana

reinstall StartMenuExperienceHost

  • status

re-build ShellExperienceHost

cortana

install

  • remove the cache

remove

install ssh-agent

  • start service

  • uninstall

deploy windows 10 in a test lab using configuration manager

  • prerequisites

  • microsoft configuration manager

  • download mdop and install dart

  • prepare for zero touch installation

  • create a boot image for configuration manager

  • create a windows 10 reference image

  • add a windows 10 os image

  • create a task sequence

  • finalize the os configuration

  • deploy windows 10 using pxe and configuration manager

    • deploy PC4

    • open configuration management property

  • replace a client with windows 10 using configuration manager

IP

  • get network interface (NIC)

  • get ip route

history

[!NOTE|label:references:]

  • info

  • backup

  • search in history

  • rename

  • remove

  • clear history

  • add history

modules

[!NOTE|label:references:]

list installed modules

[!NOTE|label:references:]

get package source

powershell psreadline

[!NOTE|label:references:]

scripts

[!NOTE|label:references:]

environment variable

timezone

[!NOTE|label:references:]

  • get timezone

  • modify timezone

  • Publish Root CA Data in to Active Directory

  • Setup Issuing CA

  • Issue Certificate for Issuing CA

    • go to Server Manager > Tools > Certificate Authority > Pending Certificates and the right click on the certificate > All Tasks > Issue

    • export

  • Post Configuration Tasks

    • run PKIView.msc to verify the configuration.

Last updated