Skip to content

Instantly share code, notes, and snippets.

View rolambert's full-sized avatar
👋
@Home

Rob Lambert rolambert

👋
@Home
View GitHub Profile
@rolambert
rolambert / client_side_cache.ps1
Created July 15, 2020 15:15
the script takes ownership of client side cache content on windows 7
function takeownershipandmovecsc{
param(
[String]$username, #$env:username
[string]$homeshare,
[String]$homea, # $home
[string]$systemroot, # $env:systemroot
[String]$SysDrive #$env:SystemDrive
)
$a1 = @(1,2,3,4,5)
$b1 = "'This is string number'"
$Scriptblock = @"
`$Array = @(1,2,3,4,5)
`$String = $b1
foreach(`$f in `$Array){ write-host "`$String `$f"}
start-sleep 10
write-host pasta
start-sleep 10
# Author: Robert J Lambert
# Revision: 0.1.0
param(
[array]$val, #Units
[switch]$waveleng, #m
[switch]$freq, #1/s
[switch]$da, #10
[switch]$hecto, #10^2
[switch]$kilo, #10^3