Due to the post using the Google language translation, I might be English meaning can not be read.
I'm using the SCSM2012 SP1, but thought that can not be satisfied portal (SSP), to make the web portal on its own, we have the work.
Work that was done
test.ps1 that was placed in the wwwroot in does not work.
If there is any advice, please let me know.
== test.ps1 ==
echo "Conten-Type: text / html"
echo ""
echo "<html>"
echo "<head>"
echo "<title> PowerShell </ title>"
echo "</ head>"
echo "<body>"
pwd
Import-Module smlets
Get-SCSMCommand
echo "</ body>"
Output "Path ---- C: \ inetpub \ wwwroot".
The term 'Get-SCSMCommand' is not recognized as the name of the program operable cmdlet, function, or script file. Make sure that the path is correct, please try again if you make sure that the name is written correctly, the path is included. Place of occurrence C: \ inetpub \ wwwroot \ ps \ test.ps1: 10 character: 16 + Get-SCSMCommand <<<< + CategoryInfo: ObjectNotFound: (Get-SCSMCommand: String) [], CommandNotFoundException + FullyQualifiedErrorId: CommandNotFoundException
I'm using the SCSM2012 SP1, but thought that can not be satisfied portal (SSP), to make the web portal on its own, we have the work.
Work that was done
- I installed smlets SM and console to the IIS server that is different from the SCSM Management Server.
- The handler mapping of IIS "asterisk. Ps1" and register the [~ ~ \ powershell.exe-File "% s"]
- Change the service account of SCSM the IIS anonymous user
-
In the profile of the IIS server powershell I added the "Import-Module smlets".
test.ps1 that was placed in the wwwroot in does not work.
If there is any advice, please let me know.
== test.ps1 ==
echo "Conten-Type: text / html"
echo ""
echo "<html>"
echo "<head>"
echo "<title> PowerShell </ title>"
echo "</ head>"
echo "<body>"
pwd
Import-Module smlets
Get-SCSMCommand
echo "</ body>"
echo "</ html>"
↑ to work when you change to [pwd] the [Get-SCSMCommand].Output "Path ---- C: \ inetpub \ wwwroot".
it works on windows powershell, when you run this test.ps1.
Error message of Import-Module smlets of IE onImport-Module: module file for a valid module directory is not found, the module 'smlets' that was specified was not loaded. Place of occurrence C: \ inetpub \ wwwroot \ ps \ test.ps1: 9 characters: 14 + Import-Module <<<< smlets + CategoryInfo: ResourceUnavailable: (smlets: String) [Import-Module], FileNotFoundException + FullyQualifiedErrorId: Modules_ModuleNotFound, Microsoft.PowerShell.Commands.ImportModuleCommand
Error message of Get-SCSMCommand of IE onThe term 'Get-SCSMCommand' is not recognized as the name of the program operable cmdlet, function, or script file. Make sure that the path is correct, please try again if you make sure that the name is written correctly, the path is included. Place of occurrence C: \ inetpub \ wwwroot \ ps \ test.ps1: 10 character: 16 + Get-SCSMCommand <<<< + CategoryInfo: ObjectNotFound: (Get-SCSMCommand: String) [], CommandNotFoundException + FullyQualifiedErrorId: CommandNotFoundException