RDP-TCP Properties changes via powershell
How can I change settings in terminal services from a powershell script for over 200 servers that are not in a domain? See screenshot of what I need to change. By default SSL is not selected and you...
View ArticleHow to call function within a script
Function set-maxthreadpolicy { [CmdletBinding(SupportsShouldProcess=$true,ConfirmImpact="Medium")] Param([string]$policy, [int]$count ) $rootDSE = [ADSI]"LDAP://rootDSE"...
View ArticleComparing CSV
We've recently migrated to SharePoint 2013 and I would like to compare the item count from all lists.Our SharePoint 2010 environment consists of 1 site collection. The webs that I want to collect list...
View ArticleEnter-PSSession does not work when a IPV6 address is entered as the -Computer...
I cannot get Enter-PSSession to work with a specific IPV6 address and when TrustedHosts is also set to this address.NOTE: If TrustedHosts is set to "*", then the command succeeds, so I'm pretty sure...
View ArticleRegister-ScheduledJob for Win 2008 R2
HiI am trying to setup a task using PowerShell on my Win 2008 R2 server using this command (I have the v3 powershell installed);# Add a job option$JobOption = New-ScheduledJobOption # Add a...
View ArticlePowerShell script for sorting data
Hello All,I'm trying to modify the output of a mailbox report that I run on the Exchange server, I use Exchange Shell to execute the ps1 file. I view these reports in Excel and after the report has...
View ArticleNull Valued Express importing LDAP attribute
I get this trying to run my script. What it is doing is adding a custom LDAP attribute to SharePoint property so I can manage it.Cannot determine the issue. There are checks in the code to let me know...
View ArticleSMISConfig help problem
My WSUS server has access to both the internet and to my lab for providing updates to my lab, which is not able to access the internet. I also use it as a transfer for other things required in my...
View ArticlePowershell Script Looking For User Account
Hey all, I am desparte for some help and please forgive me I know nothing about Powershell whatsoever. I need to test using Powershell for the existence of a user account in one of 3 domains and I can...
View ArticlePowershell (Outlook 2010) - Converting PST to XML
Hey Guys, Hoping for someone with good knowledge in powershell to explain how i should go about using the outlook comobject to either: A) Convert a specific PST i.e. "c:\mail\test.pst" to XML or i'll...
View Articlevariable does not exist outside of Event Handler
I found am example of how to return a value from a Windows form and believe there is a bug or I just don't understand how it should work... The specific line that doesn't work for me is this:In this...
View ArticlePS object multiple field IF statement getting error
The below one works fine$Result += New-Object PSObject -Property @{ ServerName = $ServerName Status = GetStatusCode( $pingStatus.StatusCode ) MapiDB=$MapiData | % {if ($_.Database -ne $null)...
View ArticleSplit & Trim
I am looking to convert a comma delimited list into an array, and the list may or may not also have white space around the delimiters for readability, so I want to Trim post Split. Also, I am just...
View ArticleHelp with script to remove user from groups
This is a two-part question.One of our user admin duties is to remove a user's group memberships when they leave the firm. I found a script which worked the first few times I tested it but then...
View ArticleSharePoint Online Management Shell
Is SharePoint Online Management Shell compatible with Windows 8.1 Pro PowerShell 4.0?thanks.
View ArticleRegex backreference combined with string - how to separate
Hi, I'm doing a replace with a backreferencebut the backreference is being interpreted as part of the string instead. If I insert a space it is interpreted correctly but I do not want to have a...
View ArticleHow-to move objects (users) from one ou to another using Powershell and an XLSX
Hi all,I have a spreadsheet that has headers. I need to move all of the objects on this exception report to the proper OU (all going to the same OU).The header that validates the need to move is called...
View ArticleRegEx help
I'm trying to find a regex that can match a pattern like this:'/questions/100135507/even-after-completing-the-final-project-i-am-not-seeing-course-complete-message#ud617'I might be...
View ArticleDSC - File Provider
I can find plenty of examples that show the built-in File Resource using a remote share as the 'SourcePath', but I cant seem to make it work. Am I missing something?File WebFiles { Ensure = "Present"...
View ArticleHow to detect selection in Combo Boxes instead of click.
I have two groups in a powershell script. One has a series of combo boxes that you select options from, and the second displays the combined result from the selected combo boxes. I was trying to use...
View Article