Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Browsing all 8411 articles
Browse latest View live

Error running Management Shell SharePoint 2010

Hello everybody,I've just installed a test vm for SharePoint 2010. Everytime I run the management shell I receive the error Add-PSSnapin : Could not load type...

View Article


TIP - Watch Out! return values from functions in power shell...

Ach SO!Be carefull when writing functions that returns values in powershell.Take this example: function GetTaskDescriptionObject($sTitle, $sStatus, $iId){  $objTask = New-Object System.Object |...

View Article


Powershell for Beginners-Tic Tac Toe Game

Hello, beginner Powershell user here. I cannot for the life of me figure out what is wrong with my code. The script asks "Would you like to play? (Y/N)" and when the user enters "Y" it hangs and...

View Article

ActiveSync Exchnage 2007

Hi,Exchange 2007 Please can someone help with a PowerShell command? I need help with a script that I will schedule to run on a daily basis to disable ActiveSync on all mailboxes except for users which...

View Article

Get User run as services from computers in Active directory | need help with...

i have this scriptworking grate i wish to echo the computers name that have this errorGet-WMIObject : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)At...

View Article


Setting Web Site RequestFiltering/RequestLimits/MaximumAllowedContentLength

I am trying to set the Maximum Allowed Content Length for a web site under IIS 7.5 using Powershell 2 or 3.  The only examples I have seen use appcmd ...  This is easy to do with the IIS Manager UI by...

View Article

Hi Need Help in PowerShell

I am Trying to read the content from the Tracking log file which is generated once the Jams jobs is completed success or failure....please find below the demo of log file,JAMS Version 6.0.523.0 on...

View Article

XP last logon time

Hello,Just wondering if anyone knows of a WMI namespace like the Win32_UserProfile that has a user last logon/use time that is supported in XP?I am trying to create a script that will achieve this and...

View Article


Windows Forms Textbox - Read line by line

Hello,I am not sure this can be done, I remember seeing a post on the Scripting Guys Blog stating you cannot read a Forms TextBox line by line, but knowing this is .NET based I am in denial about this....

View Article


Theres gota be a better way! ??? GetADGroupMember

Hi, I need to write a script that will go through an AD-group and get all the users from its sub-groups. For each user I require the following details:distinguishedNameupnnamesamaccountname2x business...

View Article

How to script out data from a table with Powershell

Hi,I have few lookup tables I need to script data for in order to rebuild an empty database.  I've already developed the scripts for the database schema.For example I have a table User:UserId,...

View Article

Powershell workaround for File Folder names that are too long...

Hi,is there any current update on the limitations in Powershell concerning the File FullName/Folder names being more than 260/248 chars?I've found this post, but I'll admit it's a bit...

View Article

Matching up source and results in output

Greetings, all.I have been searching for a resolution to my issue for some time.  Accepting defeat, I am calling on the assistance of those that know what they are doing.  I am attempting to do...

View Article


Foreach assistence with import-csv

Hello...I am somewhat new to the PS inner workings and thought I could ease my way into it by tackling, what I hoped, would be a simple starting project. We have a multitude of AD users who, during the...

View Article

Print to a network printer

HelloIwould like toprint to aof arbitrarynetworkprinter notthe defaultprinter.I havethe following scriptDirc:\myFolder\*.Pdf|Foreach-Object{Start-Process-FilePath$_.FullName-VerbPrint}Iwould like...

View Article


parsing issue on curl command

I am running a curl command in powershell, but it is generating an error indicating a parsing issue.  The command is:curl --basic -g -u admin:admin -d  "{\"name\" : \"cci-dev\" , \"serversNames\": [...

View Article

Measure-Object is the correct way to use?

I wrote PS script to collect all mailboxes from one exchange server and print in email report with mailboxdisplayname, TotalItems. stored in $Jm before formatting I want to total mailbox count and sum...

View Article


using Quest CMDlets to return all groups that contain disabled users

Hi all, i have a new question :)i wish to return all the groups in a domain that have disabled members. I've looked at doing this via Get-Qadgroup | Get-Qadgroupmember but i couldn't get it to work. So...

View Article

splitting variables

Hi, I need help for a script to archive logfiles, im trying to compress monthly logs with 7zip.Im "feeding" 7zip executable with a file list from a array stored in a variable, but the list is to big...

View Article

WSUS Powershell cmdlet

HiIm trying to run the following script copied from TechNet. When I do it works just as it is supposed to, but it doesn't approve updates with license agreements that need to be accepted. Is there a...

View Article
Browsing all 8411 articles
Browse latest View live


Latest Images