How to get web page information?
Any way to ask powershell get information from one of the web page?Let's say I got below information:$a= "UserID" $URL= https://ebr.abc.com/admin/insync/#op=users-details/uid=$a/tabid=0 I need $c =...
View ArticleCount user sessions
Hello,we use a script each day to check the health status of our Citrix enviroment. The Citrix operators recieve a mail wich looks like this... I removed some company data...The first column contains...
View ArticleI need to create a script to install an executable on multiple remote 64 bit...
([WMICLASS]"\\$RemoteSystem\ROOT\CIMV2:win64_process").Create("cmd.exe /c C:/InstallSetup/Program.exe /s /v`" /qn")write-host "Successfully installed" But even running this on a single system gives...
View Article3 Technologies to Focus On in 2015 for IT Job Security
With 2015 just around the corner, you've probably read a stack of technology predictions already. We've even supplied quite a few here on WindowsITPro. But, I've yet to see or read anything pertaining...
View ArticleCreate line break in string/message
Hi guys, I'm using powershell to send an email which works fine, however I'd like to reformat the body a little.I have a number of PC names in the array which I then join. $merge = $PCs_in_array -join...
View ArticleUninstalling Google Toolbar
I would think this shouldn't be too hard, but apparently I'm doing something wrong, can anyone give me any suggestions please?$appname = "Google Toolbar for Internet Explorer"$app = get-wmiobject...
View ArticleHELP WITH how to extract last entry by pattern in files in directory
hello, I have such isue:Have directory with different logs. I need to select log with name daemon_DDMMYY.log (daemon_*.log) and extract just last entry with pattern "moneywrite" (if exists - not all...
View ArticleModification to powershell.com site
Hi,It would be really great if this site admins can add an individiuals posts and threads seperately. I have posted a question some months back and now I needed a small module of my it, and to search...
View ArticlePowershell XML cannot count to 1
OK, I have an xml file with following contents:<?xml version="1.0" ?><Objects> <Object Name="Name01"> <Number>123465</Number> <Pictures...
View ArticleUsing PowerShell 2 to install PowerShell 3
I am studying PowerShell and I noticed that many cmdlets are not available in Windows Server 2008 R2 because PowerShell 2 is installed by deafult instead of PowerShell 3: is it correct?To get other...
View ArticleEdit registry folder permissions in Windows 7 with Powershell
Hello to all. I'm new to Powershell, but hoping to learn a lot. I have a question: is it possible to use Powershell to edit the permissions of a registry folder? I have PCs in my work environment that...
View ArticleRenaming multiple folders
Hello,I've been trying to write a script to rename multiple folders in a directory but am not having much luck! The problem I have is that the path of the folders that I need to rename will change, for...
View Articlerecursive funtion not picking up the groups belongs to other domains
Hi Guys,when using recursive function its not picking up the security groups belong to another groupfor egif group b and group c are nested for group a and group b and group c belongs to deferent...
View ArticleAdd recursive function
Hi GUYS,Can Someone help me to add recursive function to this codeSet-PSDebug -strictFunction Get-ADGroupMembers ($Group){ $DomainName = $Group.Split("\") | Select -First 1 $DomainName =...
View ArticleTrying to write an answer to a CSV file.
Hello,I'm trying to write "Not Found" or "Exists" to output to a CSV file.How do you do that ? Clear-Hostget-content c:\temp\servers_smalltest.txt |ForEach-Object {$_$MachineName = $_...
View ArticleCopy-Item Protocol?
Hello Experts, Does anyone know exactly what Copy-Item uses for file transfers?
View ArticleHow to get sub folder path
I am trying to get sub string from a string with powershell$completePath = "C:\Development\Work\ABC-SharePoint\ABC\css\ABC\XYZ"$startingFolder = "ABC" I want "ABC\css\ABC\XYZ" note:ABC is multiple...
View ArticleGet attached template name and path of word documents
HelloHow can I get attached template name and template path of word documents on a file server (with subdirectories). Word documents are: *.doc OR *.docxPath: Drive letter OR UNC path of file server...
View ArticleCombining 2 seperate scripts into one
Good Afternoon I currently have 2 scripts that i currently use anytime someone new starts at the company the script below will create a the new user profile #Script to create new AD user, new mailbox,...
View ArticlePS to create new users and update changed information
I have to admit that I am fairly new at powershell but am able to get around fairly well with it. We have a client of Charter High schools that has a CMS system and they dump to a TXT file all the...
View Article