Outlook remove empty pst folders from stores with powershell script
I created a script that finds all pst folders in the My Documents folder of a user, moves those PST files and attaches the PST to outlook after they've been moved.If PSTs in a user's my documents...
View Articlehow to silently install manually downloaded windows .net Framework security...
Hi,I would like to know how can I install the following packages silently with zero user intervention through batch script.vcredist_x86.exe...
View Articlepowershell : select user/group to join computer in domain
HiI'm waste a lot of time trying to find how can I set user or group who can join newely-created computer in AD to domain.When computer created via GUI way it's looks like this: I can't find...
View ArticleHow to check if $($var) exists?
Hi guysI hope you can help me!Let's say I have this:$XXX = "TTT" $Department = "XXX - Hello" $Test = ($Department.Split(" "))[0] If($($Test) -eq "TTT") {Write-Host "Does it work?"} The If statement is...
View ArticleWhy does IF [!LoopMo:~0,1!] result in an error?
In the following script IF [!LoopMo:~0,1!] gives an error while IF [%LoopMo:~0,1%] does not.I understand that I do not need the ! and that in this case the % will do but I would like to understand...
View ArticleRadio Button Condition
I have an HTA/Vbscript with two radio buttons, and an input window. I have a condition to check if windows in not complete then "Finish" button is disabled. I would like to add that if None of the...
View ArticleGet all users' group memberships, non-Active Directory (PowerShell)
All of the snippets I've found for listing all users and all groups associated with those users assume the system in question is under Active Directory control. I wish to obtain this listing for a...
View ArticleObtain reason for AccessCheck failure
As a specific user on a specific file object, requesting file read and read security permissions on said file results in an access check failure. I wish to dive in to the actual reason why the access...
View ArticleBulk Add Users to Group Using Log on Name
I have found that the following windows command will add a user to a group in AD: dsquery user -samid <logonname>|dsmod group...
View ArticleNetAdapter module cmdlet not working on Windows Server 2008 R2
HI,I have upgraded the powershell version on Server 2008R2 to 3.0, even though NetAdapter cmdlets not working. Then , I searched about this issue and few recommended for updating Powershell to...
View ArticlePowerShell - Trouble with using ASSOCIATORS OF
Hi All,I have been playing around with associating related classes recently and have had reasonable success, however I am stumped on this one.I am currently querying HP hardware using WMI using the...
View Articlemoving files with .bat by age
So I need a .bat to move not copy the oldest .txt file in a folder to another folder. The .txt files are quite often less than 30 min old, if the files were days apart I wouldn't be having a problem....
View ArticleHow to return a specific date/time range and last event details, when...
I am new to scripting (literally started reading/learning scripting a few hours ago), and I am stuck in trying to get my current script/command to filter a specific date range.* Note: I am working with...
View ArticleTrying to display multiple people from different titles
Get-ADUser -Filter {Title -like "Director"} This is what I've come up with. I want to display more than just director but I don't know how to do that. I have tried to use spaces and other things but I...
View Articledata extraction
Hello great programmers, please i will like to ask of a question..i want to create a software that looks loops through all the links in a site and extract specific datas from each of them.the line of...
View ArticleUsing PowerShell to export data froma sharepoint list & empty field issue
When you use a simple script to export a sharepoint list to CSV it works fineex. "value1", "value2", "value3"However if you have an empty field it doesex. "value1", , "value3"bute the empty field...
View ArticleIf statement to check if exchange 2010 is enabled and then disabling
Hi, I am trying to automate our end user process and need some help disabling unifed messaging for those that have it enabled. I just need help with the $UM varable to get it to return a result that =...
View ArticleCan Convert-WindowsImage convert a .WIM from Command Prompt's "recimg" on...
Hi Folks,I have been trying to do this several times, including with the UI. The UI afforded a bit more info; it was complaining about the .WIM metadata:********************** Windows PowerShell...
View ArticleVBScript to check if the computer is present in Active Driectory
I want to know is there any script to check if the machine is present in AD or not. Like say i have a machine named XYZ and i want to check if this machine is in AD or not. Using VBScript how do i do...
View ArticleUsing delimiter in Powershell
I have a code to generate log for the Windows event. But the out put has the following format in one of the columns of my CSV File.Source Network Address : 172.10.30.10 format. I only want to extract...
View Article