5

No, but you can allow users to log on only during certain hours; the setting is in the user account properties in Active Directory: You can also use a GPO to force users to disconnect if they are logged in when their logon window expires. Update about granularity: According to this discussion, the Active Directory attribute which stores this settings doesn'...


2

I know this is very old reply, but for the sake if sharing knowledge I would like to let you know that Microsoft has added a built-in SSH client and it is now enabled by default in Windows 10’s April 2018 Update (check this https://devblogs.microsoft.com/powershell/looking-forward-microsoft-support-for-secure-shell-ssh/ and this https://www.howtogeek.com/...


2

My question is there a way to set a distribution group to reject all e-mails from a specific domain so that they get a bounce back and then have to make sure to use the new group on the new domain? You could create the following Transport Rule in the EAC to reject these emails which are sent from a specific domain to the old distribution group: After that, ...


2

At some point these servers had a cluster configuration applied. I am guessing someone did not finish cleanup. If you are not using a LDAP filter with Get-ADComputer I assume your query will return disabled computer accounts. According to the documentation below computer account objects are not deleted unless you do it intentionally during cleanup. To add ...


1

The best solution to the issue of seeing lots of folders called "My Documents" because of desktop.ini on your file server, is to store them in a subfolder of the username. If you redirect "My Documents" folders to \\svr\users$\%username% this causes the problem. The path may be \\svr\users$\IrishGuy101 but when you browse the users$ share,...


1

If a non-administrator account needs to use PowerShell Remote, that is what the Remote Management Users group is for.


1

The simplest way I'm aware of would be the following (obviously navigate to the directory you want to empty files from): Get-ChildItem -File -Recurse | Remove-Item I'm not sure if this requires a minimum version but I'm pretty sure this has worked for a long time.


1

Is there another PowerShell cmdlet to use to get faster transfer time? It's slow because it is using buffered I/O. If you want performance parity use a native Windows command such as XCOPY or RoboCopy and use unbuffered I/O.


1

This will copy new lines added to server1.txt to server1_copy.txt in real time. Get-Content -Path 'server1.txt' -Tail 0 -Wait | ForEach-Object { Add-Content -Value $_ -Path 'server1_copy.txt' } If you need to bring the files in sync before running the above or that real time is simply unnecessary, a file copy can be done with the Copy-Item cmdlet Copy-Item ...


1

Here is a link to the documentation where they list which packages are dependencies on each Linux distribution that's officially supported https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7#binary-archives The PowerShell packages will reference their dependencies but how you get them depends on ...


1

The PowerShell command for this is confusing for two reasons: The docs are missing the property you need for this, "WorkerSize" The values for this property don't line up with the actual sizes you want, they are listed as small, medium, large The command you need to get a P2V2 plan is: New-AzAppServicePlan -Name $AppServicePlan -Location $...


1

Try using -Tier "P2V2" Failing that, it seems the PowerShell command doesn't support that SKU yet. Their Azure CLI example supports SKUs, shown here https://docs.microsoft.com/en-us/azure/app-service/app-service-configure-premium-tier#automate-with-scripts az appservice plan create \ --resource-group <resource_group_name> \ --name <...


Only top voted, non community-wiki answers of a minimum length are eligible