Azure Traffic Manager External Endpoints and Weighted Round Robin via PowerShell
At TechEd North America, we announced Azure Traffic Manager support for endpoints external to Azure. We are happy to announce a further enhancement, adding support for weights when using round-robin...
View ArticleCreate Single Text File with Variables from CSV File
I am needing to create a single text file that has 1251 occurrences of the following:DECLARE @return_value intEXEC @returnvalue = [dbo].[sproc_x_y_z]@providerassetid = N'$asset',@providerid =...
View ArticleXML - how to get attributes of a property and not just the property text.
I am sure this is simple, but I am struggling to get the attributes of an XML property to be displayed. I can get the property text, but I would like the also get the name or display-name attribute...
View ArticleSingle Symlink to multiple directories.
Hello,I have been battling with an issue for the last week and thought I would post here for some help.Some background:We have users who use subversion.However some users have their subversion linked...
View Articlehow to remove spaces from text?
Hi, this command write all servers name into TXT file, the problem that after every name the command add blank spaces, how can I remove them?Get-ADComputer -Filter {OperatingSystem -Like "Windows...
View Articlereplace characters in string
Hi, I have a text file that contain list of folders in servers like this:server1 c:\ora\oracel\server2 d:\root\oracle\server3 e:\Apps\LApps\oracle\and so on, I need to change every line...
View ArticleCreating Home Drives Based on group Membership
Ok what I am trying to do is create a script that will allow our Help Desk to create Home Directories on the many file servers we have around our organization. The problem is these file servers are a...
View ArticleFind ad user witch email not equal UPN
How can i find AD user witch email address not equal UPN?I try Get-ADUser -Filter { mail -notlike "UserPrincipalName" } but reasults are strange :(
View ArticleHow to put two elements of a array in one string
Hi,Powershell is giving me a headache today. I need to create a text file (or PDF) and write 6 array's so that there are two arrays next to eachother, and that 3 times. Like this:TITLEArray1...
View ArticleAD "clean-up" scripts
I'm trying to create (if one doesn't already exist) a couple of PS scripts.1.) Recurse the home directory folders on the server (i.e., \\server_name\share\jsmith , \\server_name\share\tjones etc.) and...
View ArticleAutomated install of SQL Server, Workflows or DSC???
Hey all, Trying to improve my installs of sql server by automating it all with powershell. i had a basic idea of running a bunch of checks before install, setting up things (format drives, create...
View ArticleChecking that a file backed up to the NAS exists
I have a backup powershell script that copies files from the server to our NAS, which is remotely located with a login. I am writing a powershell script to check that the file has been backed up, but...
View ArticleExtract characters from string starting at the end
Hello all,I am trying to write a script to update our home-drives in AD to a new location but I need the last part of the string not including the first back-slash, like...
View ArticleUpdate PoSH from v2 to v4 and Continue Script?
Hi all;I'm in process of developing a script for field techs that will handle a lot of the tedium (and user error-prone processes) involved in setting up a new computer for (a) client(s).It's fairly...
View Articlecompare-object output not wanted
I am comparing two csv files and I noticed it was reading the line per line, which I did not want. I have figured out how to use the select -expand property in the compare-object import to help it...
View ArticleTrim data from CSV file after a Special Character
Hi Everyone,I am trying to read data from csv file i am using Import-csv cmdlet. this csv file has SQL Server data with instance names as belowInstanceTestTest1\002Test2Test3\001I want to trim the...
View ArticleChange print que's settings
HiI have this script I found on the web to batch install printersWorking great ( server 2008 )But i want do add default settings as greyscale and duplexis that possible and if so, how?I Can live with...
View ArticleFinding the number(.count) of passwords
Iwant to find outhow manyusersare using the defaultpassword has not been.the default passwordis called"Password"can youhelp me here?Greetingsfrom theWorld ChampionCountryMarek
View ArticleOverwrite a variable with a new value
I have this piece of code that sits in a ForEach-Object loop ($Exists is a SamAccountName)#Gets the User's Manager and gets the Name instead of the DistinguishedName (as it is easier to read), skips if...
View ArticleList user shared file permission
Hi, Using below script i am able to get the shared folder permission including windows default share( ADMIN$, C$ etc).Can you please help me how to exclude default share in below script? Function...
View Article