Create folder in Outlook and move contents to it
Hi allWe have Outlook 2003, 2007 and 2010 and Exchange 2003 and the followingWe need to create a folder in Outlook called "whatever" and move all the contents of the Sent Items folder into the folder...
View Articlenot checking each server
clear-host $VerbosePreference = "continue" $bansifile= "desktop/result.html" $global:servers = "BAL-DC-01" , "BAL-NODE-01" , "BAL-NODE-02" IF (Test-Path $bansifile) { Remove-Item $bansifile } $tno =...
View ArticleRun Powershell script as Scheduled task, that uses Excel COM object
What am I missing here.. I have Powershell script that uses the Quest AD cmdlets to get computer information from AD and populate an Excel spreadsheet with the data.The script works fine, so I created...
View ArticleCheck Whether drive exists
function get-checkdrive($server) { write-verbose "check drive -started" $check= 'D:\' # no escape $testobj=get-wmiobject win32_volume -filter "DriveLetter= 'D:'" -computername $server $caption=...
View ArticleProblem with function returning a hash table
Hi allI'm puzzling over a function that sometimes returns an array rather than a hash table.Here's my Powershell script# Import the module containing the function ipmo C:\Util\Powershell\StepsT4.psm1...
View Articlerun PS function that resides in a module on another server
I created a module on a server that has a function. Within the function, it is calling a 32bit SDK. On the server itself, if I use X86 powershell I can run the function fine. What I am trying to do...
View ArticleObject Metadata not retrieved through PowerShell when in a script.
We delete accounts after a period of time after they are disabled, and for a long time we were using the WhenChanged field. We found that WhenChanged changes when users are removed from groups, so we...
View ArticleXML-RPC with PowerShell?
I use PowerShell to create new users and accounts for our onboarding process and for Exchange accounts for Office 365 (which we recently migrated to), I need to create the accounts locally and then...
View ArticleRead characters between two words and count them
HiI'm new to PowerShell and would need your help. What I want to do is to display Apache-Server-Status as a graph. There for I need to count characters between the words "workers" and "Scoreboard"....
View ArticleNot able to change the idle session limit of Remote desktop services
Hi,When i go to this path in powershell, trying to change the idle , active and disconnected session limit to 4,5,4 . It doesn't change instead of changing it shows be "Never" used. Should i set the...
View ArticleMapping, strange issue with the Windows Server
This thread comes from here. I just tried to split it up because the actual question there has already been answered.Whatever, forget New-PSDrive cmdlet. I tried it out with mapping. Here's my new...
View ArticleDot Net 4.0 application for powershell fails to execute on Windows Server...
I have a x64 dot net console application, to execute powershell cmdlets for Failoverclusters module.I've compiled application with .Net 4.0.Here DotNet4.5 is already installed. I tried to execute this...
View Articlepowershell script to get page permission in sharepoint 2010
powershell script to get page permission in sharepoint 2010adityadugyala
View ArticleInvoke-WebRequest with non supported encoding name
I'm requesting some web content that returns a content-type of: text/xml; charset="UTF-8"This causes an error: Invoke-WebRequest : '"UTF-8"' is not a supported encoding name.Is there a way to get...
View ArticleReport of audit settings
I will like to be able to produce a report of machines with audit settings using the invoke block to execute the auditpool.exe command and generate a report of settings not enable from a machine.I...
View ArticleProfile Folders Check
Good MorningI was wondering if you could advise on the following I have noticed on some of our servers, users have got more than one profile folder, therefore possibly creating additional profile...
View ArticlePowerShell Assitance - Executing Remote Scripts - Starting WinRM
Hello,Basically i want to be able to execute a script remotely on another machine, only problem is by default our WinRM service is not started, and having some difficulties running the below script...
View ArticleCannot pass vairables to Invoke-SqlCmd
Hey Guys,I've about 180 MDF (and LDF files) in a folder and I'm trying to automate the creation of SQL databases from these files.I've tried to use the Invoke-SqlCmd, but it doesn't seem to interpret...
View ArticleList all users on microsoft server 2008 (not R2) vbs
Hi, I have to generate a list with all domain users and create a .csv file using VBS (this is my first request) . I have searched on the internet and found some non working scripts, one seems to be...
View ArticleEscaping a powershell command
I've got a working PHP script that changes Active Directory passwords. The one problem I have is that I can't pass a password with a & in it because it breaks the powershell command. Is there a...
View Article