Mình nhập kiểu gì nó cũng báo lỗi như bên dưới, do câu lệnh bị sai cú pháp thì phải.
PS C:\Windows\system32> cd/d C:\WINDOWS\System32
cd/d : The term 'cd/d' 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
+ cd/d C:\WINDOWS\System32
+ ~~~~
+ CategoryInfo : ObjectNotFound: (cd/d:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Windows\system32> Cscript slmgr.vbs -upk
>> Cscript slmgr.vbs /ckms
>>
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
Error: product key not found.
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.
Key Management Service machine name cleared successfully.
PS C:\Windows\system32> Sc config Sppsvc start= auto & Net.exe start Sppsvc
At line:1 char:30
+ Sc config Sppsvc start= auto & Net.exe start Sppsvc
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
+ CategoryInfo : ParserError:
) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed
PS C:\Windows\system32> Sc config Osppsvc start= auto & Net.exe start Osppsvc
At line:1 char:32
+ Sc config Osppsvc start= auto & Net.exe start Osppsvc
+ ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
+ CategoryInfo : ParserError:
) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : AmpersandNotAllowed