简体   繁体   中英

SMB on Windows Server 2008 R1 via Powershell

I am trying to use Powershell on a Windows Server 2008 R1 computer using the following command:

Get-SmbServerConfiguration

Per my understanding this also works on W2K8, not on W2K12 only. However I receive the following error:

The term 'Get-SmbServerConfiguration' 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:27 + Get-SmbServerConfiguration <<<<
+ CategoryInfo : ObjectNotFound: (Get-SmbServerConfiguration:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

So I added the related cmdlet:

Import-Module Smb*

But this ended in an error too:

Import-Module : The specified module 'Smb*' was not loaded because no valid module file was found in any module directory. At line:1 char:14 + Import-Module <<<< Smb* + CategoryInfo : ResourceUnavailable: (Smb*:String) [Import-Module], FileNotFoundException + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand

So what is the problem here?

By the way: The Powershell version is 2.0.

Tia, Joey

问题是Sophos的版本:安装新的版本即可解决此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM