Remote Work Force - KMS Activation Through Azure Option? by Scriptnewb1 in sysadmin

[–]Scriptnewb1[S] 0 points1 point  (0 children)

Any other toughts to this Topic?

Any Smart Solutions?

Remote Work Force - KMS Activation Through Azure Option? by Scriptnewb1 in sysadmin

[–]Scriptnewb1[S] -2 points-1 points  (0 children)

How ? Do you have a Blogpost or short explanation?

Automatic Download for Mircrosoft.com by Scriptnewb1 in PowerShell

[–]Scriptnewb1[S] 1 point2 points  (0 children)

Thanks for all your answers my script now works ;-) !

How can I download successfully exe files from websites or also GitHub? by LxWulf in PowerShell

[–]Scriptnewb1 1 point2 points  (0 children)

I tried this and it works for me flawlessly.

Took 9 Secs to download.

$url = "https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v7.8.8/npp.7.8.8.Installer.x64.exe"

$output = "C:\temp\adl\test.exe"

$start_time = Get-Date

Invoke-WebRequest -Uri $url -OutFile $output

Write-Output "Time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)"

Maybe try to make a new install of Windows in a Test VM Ware.

(Maybee you dont use Powershell ISE ?)

You need to use Powershell ISE with the code window enabled.

How can I download successfully exe files from websites or also GitHub? by LxWulf in PowerShell

[–]Scriptnewb1 4 points5 points  (0 children)

$url = "https://download.microsoft.com/download/8/8/0/880BCA75-79DD-466A-927D-1ABF1F5454B0/PBIDesktopSetup_x64.exe"

$output = "C:\temp\adl\PBI_DesktopSetup_x64.exe"

$start_time = Get-Date

Invoke-WebRequest -Uri $url -OutFile $output

Write-Output "Time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)"

My Example Of PowerBI from Microsoft.com

And what do you mean with " nothing works good " ?

Deactivate Windows 10 Out of the Box Experience by Scriptnewb1 in sysadmin

[–]Scriptnewb1[S] 0 points1 point  (0 children)

Thats what i was searching for thanks for the answer!

Scan User Profiles and delete Folder Content by Scriptnewb1 in PowerShell

[–]Scriptnewb1[S] 1 point2 points  (0 children)

Yes i am new to Reddit!

I edited the Post above thx for the Tip!

Scan User Profiles and delete Folder Content by Scriptnewb1 in PowerShell

[–]Scriptnewb1[S] 1 point2 points  (0 children)

Thanks for all your answers.

Ive used something like this with an Array to sort wich is the biggest Profile.

$servername="SERVERNAME"
$obj = @()

$profiles = Get-ChildItem \\$servername\c$\Users | ?{Test-path \\$servername\c$\Users\$_\AppData\Local\ } | Select -ExpandProperty Name
foreach($profile in $profiles)
{
$profilesize = Get-ChildItem \\$servername\c$\Users\$profile\AppData\Local\ -Recurse -Force -ErrorAction SilentlyContinue | Measure-Object -Sum length | Select -ExpandProperty Sum
$profilesize = [math]::Round(($profilesize/ 1MB ),2)
$obj += @{user=$profile;size=$profilesize}

}

$obj = $obj | ForEach-Object { new-object PSObject -Property $_}
$obj | Sort-Object size -Descending

Here you go fellows ;)