SOLVED

The term '...' is not recognized as the name of a cmdlet

%3CLINGO-SUB%20id%3D%22lingo-sub-1414518%22%20slang%3D%22en-US%22%3EThe%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1414518%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EI%20am%20new%20to%20PowerShell.%20I%20am%20running%20on%20Win7%20and%20I%20have%20the%20following%20module%20installed.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cllee_0-1590310474113.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F194128i569F6DE939961147%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22cllee_0-1590310474113.png%22%20alt%3D%22cllee_0-1590310474113.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20constantly%20hit%20with%26nbsp%3B%20error%3A%20%3CSTRONG%3E%3CEM%3EThe%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%2C%20function%2C....%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20google%20around%20for%20solutions%20and%20there%20is%20a%20lot%20of%20articles%2C%20but%20only%20keeps%20throwing%20more%20error%20after%20error.%20Is%20there%20anyway%20to%20verify%20what%20is%20missing%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20point%20me%20to%20the%20right%20direction%2C%20any%20step-by-step%20guide%3F%20Like%20what%20needs%20to%20be%20installed%20first%2C%20or%20how%20to%20install%20guide%3F%20Or%20how%20to%20check%20what%20is%20still%20required%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1414518%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1414541%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1414541%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F573218%22%20target%3D%22_blank%22%3E%40cllee%3C%2FA%3E%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20what%20are%20you%20trying%20to%20do%20it%20PowerShell%20please%3F%20%26nbsp%3BThere%20are%20any%20number%20of%20modules%20you%20may%20need.%20%26nbsp%3BIt%20would%20help%20if%20you%20could%20explain%20what%20you%20want%20to%20achieve%20and%20then%20we%20can%20try%20and%20advise%20you.%20%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1414555%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1414555%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20run%20some%20commands%20to%20extract%20some%20data.%26nbsp%3BA%20couple%20of%20it%20will%20be%26nbsp%3B%3CSTRONG%3EGet-ADUser%3C%2FSTRONG%3E%20and%26nbsp%3B%3CSTRONG%3EGet-MsolUser%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1414561%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1414561%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F573218%22%20target%3D%22_blank%22%3E%40cllee%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOK%2C%20please%20try%20the%20following%20commands%20in%20PowerShell%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EInstall-Module%20MSOnline%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethen%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EImport-Module%20MSOnline%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethen%20try%20to%20connect%20to%20the%20MS%20Online%20service%20by%20entering%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EConnect-MsolService%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20should%20be%20prompted%20now%20for%20your%20M365%20Global%20Admin%20credentials.%20%26nbsp%3BLogin%20and%20you%20can%20run%20the%26nbsp%3B%3CSTRONG%3EGet-MsolUser%26nbsp%3B%3C%2FSTRONG%3Ecommands.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20order%20to%20execute%20the%26nbsp%3B%3CSTRONG%3EGet-ADUser%26nbsp%3B%3C%2FSTRONG%3Ecommands%2C%20try%20running%26nbsp%3B%3CSTRONG%3EImport-Module%20activedirectory%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1414633%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1414633%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHit%20error%20on%20first%20command%20%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cllee_0-1590319634443.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F194134i32081FC2E8B20049%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22cllee_0-1590319634443.png%22%20alt%3D%22cllee_0-1590319634443.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1414639%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1414639%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F573218%22%20target%3D%22_blank%22%3E%40cllee%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESounds%20like%20you%20may%20be%20behind%20a%20proxy%20server%3F%20If%20so%2C%20please%20try%20the%20following%20commands%20in%20PowerShell%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%24webclient%3DNew-Object%20System.Net.WebClient%0A%24webclient.Proxy.Credentials%20%3D%20%5BSystem.Net.CredentialCache%5D%3A%3ADefaultNetworkCredentials%3C%2FPRE%3E%3CP%3EThen%20try%20the%20commands%20again.%20%26nbsp%3BAlternatively%2C%20can%20you%20break%20straight%20out%20to%20the%20internet%20and%20bypass%20your%20proxy%20server%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1414652%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1414652%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EI%20don't%20think%20I%20am%20behind%20any%20proxy%2C%20not%20that%20i%20know%20of.%20I%20have%20tried%20disabled%20the%20antivirus%20anyway.%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20still%20hit%20another%20error%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cllee_0-1590320713532.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F194135i0DECF2E9D36B9538%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22cllee_0-1590320713532.png%22%20alt%3D%22cllee_0-1590320713532.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1414763%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1414763%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F573218%22%20target%3D%22_blank%22%3E%40cllee%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOK%2C%20could%20be%20a%20TLS%20problem.%20%26nbsp%3BTry%20also%20running%20this%20command%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3ENet.ServicePointManager%5D%3A%3ASecurityProtocol%20%3D%20%22tls12%22%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1414782%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1414782%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EError%20as%20well%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22cllee_0-1590330011985.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F194148i7329C3998420CE7F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22cllee_0-1590330011985.png%22%20alt%3D%22cllee_0-1590330011985.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1414852%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1414852%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F573218%22%20target%3D%22_blank%22%3E%40cllee%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESorry%2C%20I%20missed%20a%20bracket%20at%20the%20start.%20%26nbsp%3BTry%20again%20please%20with%20correct%20command.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%5BNet.ServicePointManager%5D%3A%3ASecurityProtocol%20%3D%20%22tls12%22%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1415454%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1415454%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20works!%20Thanks.%20I%20realized%20it%20needs%20to%20be%20run%20on%20a%2064bit%20PS.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20I%20noticed%20certain%20commands%20we%20need%20to%20first%20connect%20to%20the%20O365%20by%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%24UserCredential%20%3D%20Get-Credential%0A%24Session%20%3D%20New-PSSession%20-ConfigurationName%20Microsoft.Exchange%20-ConnectionUri%20https%3A%2F%2Foutlook.office365.com%2Fpowershell-liveid%2F%20-Credential%20%24UserCredential%20-Authentication%20Basic%20-AllowRedirection%0AImport-PSSession%20%24Session%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3EBut%20in%20the%20steps%20you%20provided%2C%20we%20don't%20have%20to%3F%20What%20is%20the%20difference%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1415463%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1415463%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F573218%22%20target%3D%22_blank%22%3E%40cllee%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGlad%20you%20have%20got%20it%20to%20work.%20%26nbsp%3BTo%20answer%20your%20question%2C%20the%20commands%20you%20have%20listed%20here%20connect%20you%20to%20Exchange%20Online%20PowerShell%20as%20opposed%20to%20connecting%20to%20MSOnline.%20%26nbsp%3BExchange%20Online%20PowerShell%20will%20allow%20you%20to%20manage%20mailboxes%20and%20groups%20and%20connectors%20(all%20things%20mail%20really)%2C%20whereas%20the%20MSOnline%20service%20allows%20you%20to%20manage%20User%20Objects%2C%20Licences%2C%20etc%20etc.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1419779%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1419779%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThanks.%20Appreciate%20your%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1612343%22%20slang%3D%22en-US%22%3ERe%3A%20The%20term%20'...'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1612343%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F616707%22%20target%3D%22_blank%22%3E%40PeterRising%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20run%20the%20Set-CsUser%20command%20but%20it%20throws%20an%20error%20%22The%20term%20'Set-CsUser'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet.%22%20I%20guess%20I%20am%20missing%20that%20cmdlet%20in%20a%20module%3F%20Can%20you%20please%20guide%20me%20on%20how%20to%20fix%20this.%20Thank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1876242%22%20slang%3D%22en-US%22%3Ehey%20there%20i%20face%20one%20problem.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1876242%22%20slang%3D%22en-US%22%3E%3CP%3Ewhen%20i%20installing%20exchange%20server%20i%20face%20error%20on%20the%20prerequisite%3C%2FP%3E%3CP%3EInstall%E2%80%93WindowsFeature%20%3A%20The%20term%20'Install%E2%80%93WindowsFeature'%20is%20not%20recognized%20as%20the%20name%20of%20a%20cmdlet%2C%20function%2C%20script%3CBR%20%2F%3Efile%2C%20or%20operable%20program.%20Check%20the%20spelling%20of%20the%20name%2C%20or%20if%20a%20path%20was%20included%2C%20verify%20that%20the%20path%20is%20correct%3CBR%20%2F%3Eand%20try%20again.%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%3CBR%20%2F%3E%2B%20Install%E2%80%93WindowsFeature%20RSAT%E2%80%93Clustering%E2%80%93CmdInterface%2C%20NET%E2%80%93Framework%E2%80%9345%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%2B%20CategoryInfo%20%3A%20ObjectNotFound%3A%20(Install%E2%80%93WindowsFeature%3AString)%20%5B%5D%2C%20CommandNotFoundException%3CBR%20%2F%3E%2B%20FullyQualifiedErrorId%20%3A%20CommandNotFoundException%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethis%20is%20the%20error%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi,


I am new to PowerShell. I am running on Win7 and I have the following module installed.

cllee_0-1590310474113.png

 

I constantly hit with  error: The term '...' is not recognized as the name of a cmdlet, function,....

 

I tried google around for solutions and there is a lot of articles, but only keeps throwing more error after error. Is there anyway to verify what is missing?

 

Can anyone point me to the right direction, any step-by-step guide? Like what needs to be installed first, or how to install guide? Or how to check what is still required?

 

Thanks.

14 Replies

@cllee :smile:

 

Hi, what are you trying to do it PowerShell please?  There are any number of modules you may need.  It would help if you could explain what you want to achieve and then we can try and advise you.  :smile:

Hi @PeterRising 

 

I would like to run some commands to extract some data. A couple of it will be Get-ADUser and Get-MsolUser

 

Thanks.

best response confirmed by cllee (Contributor)
Solution

@cllee 

 

OK, please try the following commands in PowerShell;

 

Install-Module MSOnline

 

then,

 

Import-Module MSOnline

 

then try to connect to the MS Online service by entering;

 

Connect-MsolService

 

You should be prompted now for your M365 Global Admin credentials.  Login and you can run the Get-MsolUser commands.

 

In order to execute the Get-ADUser commands, try running Import-Module activedirectory

 

Hi @PeterRising 

 

Hit error on first command :

cllee_0-1590319634443.png

 

@cllee 

 

Sounds like you may be behind a proxy server? If so, please try the following commands in PowerShell;

 

$webclient=New-Object System.Net.WebClient
$webclient.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials

Then try the commands again.  Alternatively, can you break straight out to the internet and bypass your proxy server? 

@PeterRising 

I don't think I am behind any proxy, not that i know of. I have tried disabled the antivirus anyway.

But still hit another error:

cllee_0-1590320713532.png

 

 

@cllee 

 

OK, could be a TLS problem.  Try also running this command;

 

Net.ServicePointManager]::SecurityProtocol = "tls12"

 

@cllee 

 

Sorry, I missed a bracket at the start.  Try again please with correct command.

 

[Net.ServicePointManager]::SecurityProtocol = "tls12"

@PeterRising 

 

It works! Thanks. I realized it needs to be run on a 64bit PS.

 

Also I noticed certain commands we need to first connect to the O365 by:

$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session


But in the steps you provided, we don't have to? What is the difference?

Thanks.

 

@cllee 

 

Glad you have got it to work.  To answer your question, the commands you have listed here connect you to Exchange Online PowerShell as opposed to connecting to MSOnline.  Exchange Online PowerShell will allow you to manage mailboxes and groups and connectors (all things mail really), whereas the MSOnline service allows you to manage User Objects, Licences, etc etc.

@PeterRising 

Thanks. Appreciate your help.

@PeterRising ,

 

I am trying to run the Set-CsUser command but it throws an error "The term 'Set-CsUser' is not recognized as the name of a cmdlet." I guess I am missing that cmdlet in a module? Can you please guide me on how to fix this. Thank you.

when i installing exchange server i face error on the prerequisite

Install–WindowsFeature : The term 'Install–WindowsFeature' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ Install–WindowsFeature RSAT–Clustering–CmdInterface, NET–Framework–45 ...
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Install–WindowsFeature:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

 

this is the error