PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.win.server.scripting > WSUS Aproved Updates - [WP]
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
WSUS Aproved Updates - [WP]

Réponse
 
LinkBack Outils de la discussion
Vieux 15/11/2007, 13h38   #1
WILDPACKET
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut WSUS Aproved Updates - [WP]


I found this on WSUS Site under Script Centre this
Provides a status report for approved updates. Every update approved on your
server is shown, with a list of the target groups for which it was approved.
Within each group, counts are shown for how many computers have a specific
status for that update: Installed, Needed, Failed, or Unknown.



When I run this on the WSUS Server it gives me an error

line 1
character: 87.
Error: invalid character
code: 800A0408
Source: Microsoft VBScript Compiling error


I am not the scripting guy.

Anybody can advise Please.

Thank you





[reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Ad ministration") | out-null
if (!$wsus) {
$wsus =
[Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer();
}

"Server name: " +$wsus.Name;
"Using secure connection: " + $wsus.IsConnectionSecureForRemoting;
"Port number: " + $wsus.PortNumber;

$updateScope = new-object Microsoft.UpdateServices.Administration.UpdateScop e;
$updateScope.UpdateApprovalActions =
[Microsoft.UpdateServices.Administration.UpdateAppr ovalActions]::Install `
-bor
[Microsoft.UpdateServices.Administration.UpdateAppr ovalActions]::Uninstall

$wsus.GetUpdates($updateScope) | foreach {
$update = $_ #$_ is a shorthand variable for the current item in a loop

"--------------------------------------------------"
"Update: " + $update.Title
"Update Id: " + $update.Id.UpdateId
"--------------------------------------------------"

$wsus.GetComputerTargetGroups() | foreach {
$group = $_
if ($update.GetUpdateApprovals($group).Count -ne 0)
{
#`t is equivalent to \t in C#/C++
"`t Computer Group: " + $group.Name
"`t ComputerTargetGroupId: " + $group.Id
"`t Approval action: " + $update.GetUpdateApprovals($group)[0].Action

$summary = $update.GetSummaryForComputerTargetGroup($group)

"`t Installed:" + ($Summary.InstalledCount + $summary.NotApplicableCount)

$neededCount = ($summary.InstalledPendingRebootCount +
$summary.NotInstalledCount)
if ($neededCount -gt 0)
{
Write-Host ("`t Needed: $neededCount") -foregroundColor Yellow
-backgroundColor black
} else {
"`t Needed: $neededCount"
}

if ($summary.FailedCount -gt 0)
{
Write-Host ("`t Failed: " + $summary.FailedCount) -foregroundColor Red
-backgroundColor black
} else {
"`t Failed: " + $summary.FailedCount
}

"`t Unknown: " + $summary.UnknownCount
"`t ------------------------------------------"
}
}
"--------------------------------------------------"
}

  Réponse avec citation
Vieux 15/11/2007, 19h14   #2
urkec
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: WSUS Aproved Updates - [WP]

"WILDPACKET" wrote:

>
> I found this on WSUS Site under Script Centre this
> Provides a status report for approved updates. Every update approved on your
> server is shown, with a list of the target groups for which it was approved.
> Within each group, counts are shown for how many computers have a specific
> status for that update: Installed, Needed, Failed, or Unknown.
>
>
>
> When I run this on the WSUS Server it gives me an error
>
> line 1
> character: 87.
> Error: invalid character
> code: 800A0408
> Source: Microsoft VBScript Compiling error
>
>
> I am not the scripting guy.
>
> Anybody can advise Please.
>
> Thank you
>
>
>
>
>
> [reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Ad ministration") | out-null
> if (!$wsus) {
> $wsus =
> [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer();
> }
>
> "Server name: " +$wsus.Name;
> "Using secure connection: " + $wsus.IsConnectionSecureForRemoting;
> "Port number: " + $wsus.PortNumber;
>
> $updateScope = new-object Microsoft.UpdateServices.Administration.UpdateScop e;
> $updateScope.UpdateApprovalActions =
> [Microsoft.UpdateServices.Administration.UpdateAppr ovalActions]::Install `
> -bor
> [Microsoft.UpdateServices.Administration.UpdateAppr ovalActions]::Uninstall
>
> $wsus.GetUpdates($updateScope) | foreach {
> $update = $_ #$_ is a shorthand variable for the current item in a loop
>
> "--------------------------------------------------"
> "Update: " + $update.Title
> "Update Id: " + $update.Id.UpdateId
> "--------------------------------------------------"
>
> $wsus.GetComputerTargetGroups() | foreach {
> $group = $_
> if ($update.GetUpdateApprovals($group).Count -ne 0)
> {
> #`t is equivalent to \t in C#/C++
> "`t Computer Group: " + $group.Name
> "`t ComputerTargetGroupId: " + $group.Id
> "`t Approval action: " + $update.GetUpdateApprovals($group)[0].Action
>
> $summary = $update.GetSummaryForComputerTargetGroup($group)
>
> "`t Installed:" + ($Summary.InstalledCount + $summary.NotApplicableCount)
>
> $neededCount = ($summary.InstalledPendingRebootCount +
> $summary.NotInstalledCount)
> if ($neededCount -gt 0)
> {
> Write-Host ("`t Needed: $neededCount") -foregroundColor Yellow
> -backgroundColor black
> } else {
> "`t Needed: $neededCount"
> }
>
> if ($summary.FailedCount -gt 0)
> {
> Write-Host ("`t Failed: " + $summary.FailedCount) -foregroundColor Red
> -backgroundColor black
> } else {
> "`t Failed: " + $summary.FailedCount
> }
>
> "`t Unknown: " + $summary.UnknownCount
> "`t ------------------------------------------"
> }
> }
> "--------------------------------------------------"
> }
>


This looks like PowerShell, not VBScript.

--
urkec
  Réponse avec citation
Vieux 15/11/2007, 19h18   #3
WILDPACKET
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: WSUS Aproved Updates - [WP]


Thank you urkec for your response.
How do I excute this script?



"urkec" wrote:

> "WILDPACKET" wrote:
>
> >
> > I found this on WSUS Site under Script Centre this
> > Provides a status report for approved updates. Every update approved on your
> > server is shown, with a list of the target groups for which it was approved.
> > Within each group, counts are shown for how many computers have a specific
> > status for that update: Installed, Needed, Failed, or Unknown.
> >
> >
> >
> > When I run this on the WSUS Server it gives me an error
> >
> > line 1
> > character: 87.
> > Error: invalid character
> > code: 800A0408
> > Source: Microsoft VBScript Compiling error
> >
> >
> > I am not the scripting guy.
> >
> > Anybody can advise Please.
> >
> > Thank you
> >
> >
> >
> >
> >
> > [reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Ad ministration") | out-null
> > if (!$wsus) {
> > $wsus =
> > [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer();
> > }
> >
> > "Server name: " +$wsus.Name;
> > "Using secure connection: " + $wsus.IsConnectionSecureForRemoting;
> > "Port number: " + $wsus.PortNumber;
> >
> > $updateScope = new-object Microsoft.UpdateServices.Administration.UpdateScop e;
> > $updateScope.UpdateApprovalActions =
> > [Microsoft.UpdateServices.Administration.UpdateAppr ovalActions]::Install `
> > -bor
> > [Microsoft.UpdateServices.Administration.UpdateAppr ovalActions]::Uninstall
> >
> > $wsus.GetUpdates($updateScope) | foreach {
> > $update = $_ #$_ is a shorthand variable for the current item in a loop
> >
> > "--------------------------------------------------"
> > "Update: " + $update.Title
> > "Update Id: " + $update.Id.UpdateId
> > "--------------------------------------------------"
> >
> > $wsus.GetComputerTargetGroups() | foreach {
> > $group = $_
> > if ($update.GetUpdateApprovals($group).Count -ne 0)
> > {
> > #`t is equivalent to \t in C#/C++
> > "`t Computer Group: " + $group.Name
> > "`t ComputerTargetGroupId: " + $group.Id
> > "`t Approval action: " + $update.GetUpdateApprovals($group)[0].Action
> >
> > $summary = $update.GetSummaryForComputerTargetGroup($group)
> >
> > "`t Installed:" + ($Summary.InstalledCount + $summary.NotApplicableCount)
> >
> > $neededCount = ($summary.InstalledPendingRebootCount +
> > $summary.NotInstalledCount)
> > if ($neededCount -gt 0)
> > {
> > Write-Host ("`t Needed: $neededCount") -foregroundColor Yellow
> > -backgroundColor black
> > } else {
> > "`t Needed: $neededCount"
> > }
> >
> > if ($summary.FailedCount -gt 0)
> > {
> > Write-Host ("`t Failed: " + $summary.FailedCount) -foregroundColor Red
> > -backgroundColor black
> > } else {
> > "`t Failed: " + $summary.FailedCount
> > }
> >
> > "`t Unknown: " + $summary.UnknownCount
> > "`t ------------------------------------------"
> > }
> > }
> > "--------------------------------------------------"
> > }
> >

>
> This looks like PowerShell, not VBScript.
>
> --
> urkec

  Réponse avec citation
Vieux 16/11/2007, 03h02   #4
Al Dunbar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: WSUS Aproved Updates - [WP]

You will need to install powershell if it is not already installed. Then you
will need to rename the file containing the script from whatever.vbs to
whatever.ps. And if that does not do the trick, then I'd suggest you refer
back to the introductory material found at the Script Centre.

/Al

"WILDPACKET" <WILDPACKET@discussions.microsoft.com> wrote in message
news:905534C9-F422-47B7-9CDE-199E71507474@microsoft.com...
>
> Thank you urkec for your response.
> How do I excute this script?
>
>
>
> "urkec" wrote:
>
>> "WILDPACKET" wrote:
>>
>> >
>> > I found this on WSUS Site under Script Centre this
>> > Provides a status report for approved updates. Every update approved on
>> > your
>> > server is shown, with a list of the target groups for which it was
>> > approved.
>> > Within each group, counts are shown for how many computers have a
>> > specific
>> > status for that update: Installed, Needed, Failed, or Unknown.
>> >
>> >
>> >
>> > When I run this on the WSUS Server it gives me an error
>> >
>> > line 1
>> > character: 87.
>> > Error: invalid character
>> > code: 800A0408
>> > Source: Microsoft VBScript Compiling error
>> >
>> >
>> > I am not the scripting guy.
>> >
>> > Anybody can advise Please.
>> >
>> > Thank you
>> >
>> >
>> >
>> >
>> >
>> > [reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Ad ministration")
>> > | out-null
>> > if (!$wsus) {
>> > $wsus =
>> > [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer();
>> > }
>> >
>> > "Server name: " +$wsus.Name;
>> > "Using secure connection: " + $wsus.IsConnectionSecureForRemoting;
>> > "Port number: " + $wsus.PortNumber;
>> >
>> > $updateScope = new-object
>> > Microsoft.UpdateServices.Administration.UpdateScop e;
>> > $updateScope.UpdateApprovalActions =
>> > [Microsoft.UpdateServices.Administration.UpdateAppr ovalActions]::Install
>> > `
>> > -bor
>> > [Microsoft.UpdateServices.Administration.UpdateAppr ovalActions]::Uninstall
>> >
>> > $wsus.GetUpdates($updateScope) | foreach {
>> > $update = $_ #$_ is a shorthand variable for the current item in a loop
>> >
>> > "--------------------------------------------------"
>> > "Update: " + $update.Title
>> > "Update Id: " + $update.Id.UpdateId
>> > "--------------------------------------------------"
>> >
>> > $wsus.GetComputerTargetGroups() | foreach {
>> > $group = $_
>> > if ($update.GetUpdateApprovals($group).Count -ne 0)
>> > {
>> > #`t is equivalent to \t in C#/C++
>> > "`t Computer Group: " + $group.Name
>> > "`t ComputerTargetGroupId: " + $group.Id
>> > "`t Approval action: " + $update.GetUpdateApprovals($group)[0].Action
>> >
>> > $summary = $update.GetSummaryForComputerTargetGroup($group)
>> >
>> > "`t Installed:" + ($Summary.InstalledCount +
>> > $summary.NotApplicableCount)
>> >
>> > $neededCount = ($summary.InstalledPendingRebootCount +
>> > $summary.NotInstalledCount)
>> > if ($neededCount -gt 0)
>> > {
>> > Write-Host ("`t Needed: $neededCount") -foregroundColor Yellow
>> > -backgroundColor black
>> > } else {
>> > "`t Needed: $neededCount"
>> > }
>> >
>> > if ($summary.FailedCount -gt 0)
>> > {
>> > Write-Host ("`t Failed: " + $summary.FailedCount) -foregroundColor Red
>> > -backgroundColor black
>> > } else {
>> > "`t Failed: " + $summary.FailedCount
>> > }
>> >
>> > "`t Unknown: " + $summary.UnknownCount
>> > "`t ------------------------------------------"
>> > }
>> > }
>> > "--------------------------------------------------"
>> > }
>> >

>>
>> This looks like PowerShell, not VBScript.
>>
>> --
>> urkec



  Réponse avec citation
Vieux 19/11/2007, 19h36   #5
WILDPACKET
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: WSUS Aproved Updates - [WP]


Al Thanks for your response.

I installed the Powershell and renamed it to file.ps
I go to DOS prompt and type powershell and enter

It changes the prompt to

PS C:\> and then I type the file.ps and enter
and get this error ...

The term 'file.ps' is not recognized as a cmdlet, function, operable
program, or script file. Verify the term and try again.
At line:1 char:18
+ file.ps <<<<

Advise Please.







"Al Dunbar" wrote:

> You will need to install powershell if it is not already installed. Then you
> will need to rename the file containing the script from whatever.vbs to
> whatever.ps. And if that does not do the trick, then I'd suggest you refer
> back to the introductory material found at the Script Centre.
>
> /Al
>
> "WILDPACKET" <WILDPACKET@discussions.microsoft.com> wrote in message
> news:905534C9-F422-47B7-9CDE-199E71507474@microsoft.com...
> >
> > Thank you urkec for your response.
> > How do I excute this script?
> >
> >
> >
> > "urkec" wrote:
> >
> >> "WILDPACKET" wrote:
> >>
> >> >
> >> > I found this on WSUS Site under Script Centre this
> >> > Provides a status report for approved updates. Every update approved on
> >> > your
> >> > server is shown, with a list of the target groups for which it was
> >> > approved.
> >> > Within each group, counts are shown for how many computers have a
> >> > specific
> >> > status for that update: Installed, Needed, Failed, or Unknown.
> >> >
> >> >
> >> >
> >> > When I run this on the WSUS Server it gives me an error
> >> >
> >> > line 1
> >> > character: 87.
> >> > Error: invalid character
> >> > code: 800A0408
> >> > Source: Microsoft VBScript Compiling error
> >> >
> >> >
> >> > I am not the scripting guy.
> >> >
> >> > Anybody can advise Please.
> >> >
> >> > Thank you
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > [reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Ad ministration")
> >> > | out-null
> >> > if (!$wsus) {
> >> > $wsus =
> >> > [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer();
> >> > }
> >> >
> >> > "Server name: " +$wsus.Name;
> >> > "Using secure connection: " + $wsus.IsConnectionSecureForRemoting;
> >> > "Port number: " + $wsus.PortNumber;
> >> >
> >> > $updateScope = new-object
> >> > Microsoft.UpdateServices.Administration.UpdateScop e;
> >> > $updateScope.UpdateApprovalActions =
> >> > [Microsoft.UpdateServices.Administration.UpdateAppr ovalActions]::Install
> >> > `
> >> > -bor
> >> > [Microsoft.UpdateServices.Administration.UpdateAppr ovalActions]::Uninstall
> >> >
> >> > $wsus.GetUpdates($updateScope) | foreach {
> >> > $update = $_ #$_ is a shorthand variable for the current item in a loop
> >> >
> >> > "--------------------------------------------------"
> >> > "Update: " + $update.Title
> >> > "Update Id: " + $update.Id.UpdateId
> >> > "--------------------------------------------------"
> >> >
> >> > $wsus.GetComputerTargetGroups() | foreach {
> >> > $group = $_
> >> > if ($update.GetUpdateApprovals($group).Count -ne 0)
> >> > {
> >> > #`t is equivalent to \t in C#/C++
> >> > "`t Computer Group: " + $group.Name
> >> > "`t ComputerTargetGroupId: " + $group.Id
> >> > "`t Approval action: " + $update.GetUpdateApprovals($group)[0].Action
> >> >
> >> > $summary = $update.GetSummaryForComputerTargetGroup($group)
> >> >
> >> > "`t Installed:" + ($Summary.InstalledCount +
> >> > $summary.NotApplicableCount)
> >> >
> >> > $neededCount = ($summary.InstalledPendingRebootCount +
> >> > $summary.NotInstalledCount)
> >> > if ($neededCount -gt 0)
> >> > {
> >> > Write-Host ("`t Needed: $neededCount") -foregroundColor Yellow
> >> > -backgroundColor black
> >> > } else {
> >> > "`t Needed: $neededCount"
> >> > }
> >> >
> >> > if ($summary.FailedCount -gt 0)
> >> > {
> >> > Write-Host ("`t Failed: " + $summary.FailedCount) -foregroundColor Red
> >> > -backgroundColor black
> >> > } else {
> >> > "`t Failed: " + $summary.FailedCount
> >> > }
> >> >
> >> > "`t Unknown: " + $summary.UnknownCount
> >> > "`t ------------------------------------------"
> >> > }
> >> > }
> >> > "--------------------------------------------------"
> >> > }
> >> >
> >>
> >> This looks like PowerShell, not VBScript.
> >>
> >> --
> >> urkec

>
>
>

  Réponse avec citation
Vieux 21/11/2007, 04h42   #6
Al Dunbar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: WSUS Aproved Updates - [WP]


"WILDPACKET" <WILDPACKET@discussions.microsoft.com> wrote in message
news:4ED8B4A7-DE80-4800-9CC7-4A81947ADD5C@microsoft.com...
>
> Al Thanks for your response.
>
> I installed the Powershell and renamed it to file.ps
> I go to DOS prompt and type powershell and enter
>
> It changes the prompt to
>
> PS C:\> and then I type the file.ps and enter
> and get this error ...
>
> The term 'file.ps' is not recognized as a cmdlet, function, operable
> program, or script file. Verify the term and try again.
> At line:1 char:18
> + file.ps <<<<
>
> Advise Please.


Best advice would be to read up on powershell and/or check out
microsoft.public.windows.powershell.

Or you could try this command:

powershell file.ps

When you start powershell without a parameter, it expects you to type
powershell commands interactively.

/Al

>
>
>
>
>
>
>
> "Al Dunbar" wrote:
>
>> You will need to install powershell if it is not already installed. Then
>> you
>> will need to rename the file containing the script from whatever.vbs to
>> whatever.ps. And if that does not do the trick, then I'd suggest you
>> refer
>> back to the introductory material found at the Script Centre.
>>
>> /Al
>>
>> "WILDPACKET" <WILDPACKET@discussions.microsoft.com> wrote in message
>> news:905534C9-F422-47B7-9CDE-199E71507474@microsoft.com...
>> >
>> > Thank you urkec for your response.
>> > How do I excute this script?
>> >
>> >
>> >
>> > "urkec" wrote:
>> >
>> >> "WILDPACKET" wrote:
>> >>
>> >> >
>> >> > I found this on WSUS Site under Script Centre this
>> >> > Provides a status report for approved updates. Every update approved
>> >> > on
>> >> > your
>> >> > server is shown, with a list of the target groups for which it was
>> >> > approved.
>> >> > Within each group, counts are shown for how many computers have a
>> >> > specific
>> >> > status for that update: Installed, Needed, Failed, or Unknown.
>> >> >
>> >> >
>> >> >
>> >> > When I run this on the WSUS Server it gives me an error
>> >> >
>> >> > line 1
>> >> > character: 87.
>> >> > Error: invalid character
>> >> > code: 800A0408
>> >> > Source: Microsoft VBScript Compiling error
>> >> >
>> >> >
>> >> > I am not the scripting guy.
>> >> >
>> >> > Anybody can advise Please.
>> >> >
>> >> > Thank you
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > [reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Ad ministration")
>> >> > | out-null
>> >> > if (!$wsus) {
>> >> > $wsus =
>> >> > [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer();
>> >> > }
>> >> >
>> >> > "Server name: " +$wsus.Name;
>> >> > "Using secure connection: " + $wsus.IsConnectionSecureForRemoting;
>> >> > "Port number: " + $wsus.PortNumber;
>> >> >
>> >> > $updateScope = new-object
>> >> > Microsoft.UpdateServices.Administration.UpdateScop e;
>> >> > $updateScope.UpdateApprovalActions =
>> >> > [Microsoft.UpdateServices.Administration.UpdateAppr ovalActions]::Install
>> >> > `
>> >> > -bor
>> >> > [Microsoft.UpdateServices.Administration.UpdateAppr ovalActions]::Uninstall
>> >> >
>> >> > $wsus.GetUpdates($updateScope) | foreach {
>> >> > $update = $_ #$_ is a shorthand variable for the current item in a
>> >> > loop
>> >> >
>> >> > "--------------------------------------------------"
>> >> > "Update: " + $update.Title
>> >> > "Update Id: " + $update.Id.UpdateId
>> >> > "--------------------------------------------------"
>> >> >
>> >> > $wsus.GetComputerTargetGroups() | foreach {
>> >> > $group = $_
>> >> > if ($update.GetUpdateApprovals($group).Count -ne 0)
>> >> > {
>> >> > #`t is equivalent to \t in C#/C++
>> >> > "`t Computer Group: " + $group.Name
>> >> > "`t ComputerTargetGroupId: " + $group.Id
>> >> > "`t Approval action: " +
>> >> > $update.GetUpdateApprovals($group)[0].Action
>> >> >
>> >> > $summary = $update.GetSummaryForComputerTargetGroup($group)
>> >> >
>> >> > "`t Installed:" + ($Summary.InstalledCount +
>> >> > $summary.NotApplicableCount)
>> >> >
>> >> > $neededCount = ($summary.InstalledPendingRebootCount +
>> >> > $summary.NotInstalledCount)
>> >> > if ($neededCount -gt 0)
>> >> > {
>> >> > Write-Host ("`t Needed: $neededCount") -foregroundColor Yellow
>> >> > -backgroundColor black
>> >> > } else {
>> >> > "`t Needed: $neededCount"
>> >> > }
>> >> >
>> >> > if ($summary.FailedCount -gt 0)
>> >> > {
>> >> > Write-Host ("`t Failed: " + $summary.FailedCount) -foregroundColor
>> >> > Red
>> >> > -backgroundColor black
>> >> > } else {
>> >> > "`t Failed: " + $summary.FailedCount
>> >> > }
>> >> >
>> >> > "`t Unknown: " + $summary.UnknownCount
>> >> > "`t ------------------------------------------"
>> >> > }
>> >> > }
>> >> > "--------------------------------------------------"
>> >> > }
>> >> >
>> >>
>> >> This looks like PowerShell, not VBScript.
>> >>
>> >> --
>> >> urkec

>>
>>
>>



  Réponse avec citation
Vieux 30/01/2008, 23h31   #7
Karl Mitschke
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: WSUS Aproved Updates - [WP]

Hello WILDPACKET,

> Al Thanks for your response.
>
> I installed the Powershell and renamed it to file.ps I go to DOS
> prompt and type powershell and enter
>
> It changes the prompt to
>
> PS C:\> and then I type the file.ps and enter
> and get this error ...
> The term 'file.ps' is not recognized as a cmdlet, function, operable
> program, or script file. Verify the term and try again.
> At line:1 char:18
> + file.ps <<<<
>
> Advise Please.


You need the extension to be .ps1 with the numeral 1 at the end.

Then, in powershell, if file.ps1 is in your current directory:

..\file.ps1

You will probaly be told to change your execution policy.

Read the suggested, and set the execution policy as desired

Karl



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h12.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,34723 seconds with 15 queries