Convert date series from d-m-yyyy to dd-mm-yyy
I have got a date series which is in the following format: d-m-yyyy. By using VB script i would like to convert this series to the format: dd-mm-yyyy.I can't find the right code to convert this with...
View ArticleSet Variable in nested FOR /F Loop
Hi thereat the moment I have an Problem I cant´t understand....I have to change the BCD store and add some entries. So I made first an text file with the partitions/installation to add.This looks...
View ArticleTutorials on PowerShell and VBS ?
I took a job where learning scripting could really benefit the company. My current scripting experience is very limited. It seems like we use .VBS and .PS1 scripts a lot as templates. Where do I go...
View ArticlePowershell: howto restrict/give access on IIS?
Hi,I'd like to install a webserver on some pc's then showing a health report on them. All that is working fine via Powershell. However, I 'd also like to restrict access to local user and IT staff....
View ArticleQuery AD-Computers for Managed-by with deactivated users
Hello community,I need to query AD for computer-Objects that have no Managed-by-entry or that have Managed-by-entries with a deactivated user.I know how to query empty Managed by, but how can I query...
View ArticleIs there an easy way to find the path to AD group? I trying to add users to a...
Using simple script:CLS$users=Import-CSV"C:\files\Shourlytest.txt"|%{Get-ADUser-Filter"Name -eq '$($_.UserName)'"}ForEach($Uin$Users) {Add-ADGroupMember-identitySEC_O365_EXTACCESS...
View ArticleGet top 5 cpu memory/cpu and have same result as taskmgr, use get-process,...
Hi, I'd like to list top 5 process an which percentage of cpu/memory they use. I will then use this to analyze remotely what processes are consuming cpu/memory instead of going via taskmgr. I have...
View ArticlePowershell script to disable inherit from parent object and remove Modify
I hope someone can help me with this complex script.I am looking for a Powershell script that will change permissions on a subfolder. I have a folder that is inheriting Modify from the parent folder...
View ArticleMaking a script that will delete all folders and files that are older than 1 day
hi!I have a vbscript that I want to run to delete all files and folders that are older than 24 hours, and it should NOT delete a directory if it has files or folders in it that is younger than 24...
View ArticleUnderstanding custom objects properties
Hi. Help me, please understand how can i use the Custom properties in my scripts.I want to get the Variable with my own type of data(with property). Example: $myVariable.Name, $myVariable.Path...I find...
View ArticleAdd User to Security group base on Country Attribute
I have users in many countries and need an automated way to add these users to specific security groups base on the Country Attribute of each user object.I came across this script that is kinda what I...
View ArticleBULK insert of Multiple tables using Powershell Script WorkFlow with Transaction
Hi All,I am new to powershell workflowI have 3 DB under "ABC" database server.I am using SQLConnaction, DatatAdapter, DataSet to fetch record. It give me 1 dataset having 3 Datatable.Can someone help...
View ArticlePowershell to stop services run batch files then start services again.
Hi, I’m trying to do the following on a Windows server. (i'm new to powershell ;-)The situation: I’ve to stop multiples services, check the services if they are correctly stopped THEN run multiple...
View ArticleRe:VB Script Looping for PSCP Error command
Hi All,i need your help to write vbscript for PSCP File transfer, First it should Check if the File Transfer process has not been done after 3 times then it should send email.kindly please help for...
View ArticleCustom Pop Up Notification Using SCCM
Hello,I need to deploy the custom notification to users using SCCM. Have the following script for PowerShell but it could be in any scripting language, just need to serve the purpose of displaying the...
View ArticleInvoke-WebRequest causes "Look for an app in the Store"
I am making a bunch of Invoke-WebRequests, to convert a fair few HTML files into a single document.There's obviously some transformations that occur before this can be achieved, however I am repeatedly...
View ArticleAccessing MS Access database from PowerShell
I'm working on my first real PowerShell script. I'm converting an old VBScript to PowerShell. The script uses an Access database to track computer information. In looking for information on how to...
View ArticleScript to change the license from Exchange Online 1 to Office 365 Enterprise E3
Hi Team,I am looking for the script which "Check user license if Exchange Online Plan 1 and change to Office 365 Enterprise E3".I wanted to make the changes for around 500 users who currently have Plan...
View ArticleHow do I find the diskpart disk/partition numbers by drive letter in batch...
Hi!I'm currently developing a batch that can make drives write protected, the original commands is like thisdiskpart list disk select disk 5 attributes disk set readonlyWell, it is okay.. but since the...
View Article