Quantcast
Browsing all 21975 articles
Browse latest View live

Cannot convert 'System.Object[]' to the type...

Hi all, extremely new to powershell. I am getting the error "Cannot convert 'System.Object[]' to the type 'System.Nullable'1[System.Boolean\' required by parameter 'Enabled'" when I call a...

View Article


Image may be NSFW.
Clik here to view.

Plase help to check script Power Shell for check status Replication Domain

I Need 1. Run script by Schedule Task daily2. Automatic Send mail to My group3.Need to report follow with my image   I need to use power shell can run check status replication between DC with...

View Article


Run a form in multiple copies

I created a form by using powershell script. Is it possible to run it in multiple copies at the same time? Thanks.

View Article

Build numbers for powershell.exe vs. PowerShell version

Hi!I'm looking for information about powershell.exe file build number or version than can allow mi determine installed PowerShell version on remote hosts.Currently I must determine installed version on...

View Article

Office Web App > Calendar > Limit 5 calendar

Hello,I have 7trucks.A schedulefor each truckinOfficeWeb App.I want to displaymy 7calendarssimultaneouslyinOWA.But there isa limitto display only 5calendars.How toskip thislimit?Do you know...

View Article


Implicit Remoting Questions

I've been reading up about implicit remoting, and have followed through some of the guides for using this. I've still got some things im not sure about though.How do i ensure that i am not prompted for...

View Article

Help with error: Unexpected token in expression or statement

Hi,For days the following line in my code worked, with all variables containing valid data.  Im just concatenting variables:$strADMTIncludeFile1 = $strADMTIncludeFile$strDateTime$strTxtFileXtensionNow...

View Article

Inventory computer

Hello,I have a scriptthat canmake an inventory ofcomputers and put in excel,onnec vl370no problemeverything works , onlenovo,if I want to knowthe typeof processor and thehard disk...

View Article


Powershell invoked from c# is not listing all the files

Hi,I'm trying to use lpr.exe which is available under %systemroot%.I manually launch powershell  and cd to %systemroot% --> ls lp* --> it will list all the lpr.exe and associated files.But, when...

View Article


Powershell v2.0: run a Script to create AD-Users with elevated permissions

Hi,i've written a script to create AD-Users (bulk import form csv), now I want to provide this script to our 1st lvl support, so they can use it.Due to the fact that 1st has no permissions to manage...

View Article

Testing Web Services + XML

Hello,Beginer in powershell.. I'm just trying to send a XML parameter to a web service and getting an error...Is it possible ??Script:#Web Service $Uri = "http://siteweb/webservice.svc?WSDL"#Path Xml...

View Article

Get-WinEvent with non-administrative user

he idea here is to give a group of users in a help desk situation the ability to use a powershell script to quickly find out the source of account lockouts. The script is working wonderfully as myself,...

View Article

Environment Variable

I'm trying to solve another problem related to login scripts in DC, using a .vbs program but i'm stuch in another problem that is:Code:Set objShell =...

View Article


Invoking Powershell modules on remote clients via package/command line

Hello Everyone - I have two modules(functions) that i've written and tested successfully locally in my environment that give me Uninstall and Repair functionality on whatever the string contains. Both...

View Article

Get-ADuser and formatting results

What Im looking to do is to output all of my AD Users, including all of their properties, and then output that to a tabular format. The issue I am having is that some of the fields, like MemberOf, dont...

View Article


Remove whitespace from AD user name to fix IOS7 reboot issue

We opened a case with Apple premier support regarding an issue where IOS7 devices would reboot for no apparent reason.  After sending them logs they determined it was because of  an extra space in the...

View Article

Modify alias output to remove part of name

I'd like to have assistance with removing characters from an alias when calling the alias to create a file.Alias: $URL_FILE = C:\Directory\OutputAlias: $URL = http://sitename.comScript collects some...

View Article


PowerShell Newbie Help - Hiding an error message

Hi GuysHope you can help! I am not great with PowerShell just yet, getting to grips slowly but am stuck on something simple, even after some searching.So I have a script something like this;$taskcheck...

View Article

Returning -ErrorVariable defined in remote session invoked with invoke-command

Hi fellow PowerShellers,I'm trying to find a solution on how to get error variables defined in remote sessions, back to the local session. Let's say I do:Invoke-command -ComputerName testServer...

View Article

Azure Service Status Check and Alert

Hi, I would like to have a script regularly check for a service running within Azure and if for some reason that service is down, alert the specified admins accordingly. I understand how to get the...

View Article
Browsing all 21975 articles
Browse latest View live