Comments (3)
You can add | sed 's/=//g'
to the end of that line to remove the padding:
p=`system_profiler SPHardwareDataType | awk '/Serial/ {print $4}' | tr '[A-Z]' '[K-ZA-J]' | tr 0-9 4-90-3 | base64 | sed 's/=//g'`
from shell-intune-samples.
Ahh forgot about sed. Thanks, didn't think of that, will make note of that and try it. Should be added to script as not allow simple passwords I would think would be common setting people set. I also noticed that the password is spread all through logs. Not sure that is a good thing. This isn't the safest setup, but something and better than having the same password on everything. Thank you!
from shell-intune-samples.
This also seems to work fine, im rather new so its not that pretty :)
p=$(echo -n "$(system_profiler SPHardwareDataType | awk '/Serial/ {print $4}')" | tr '[A-Z]' '[K-ZA-J]' | tr 0-9 4-90-3 | base64)
its not just the == and since i was doing the script to get the base64 from a windows device my padding was "Cg==" so i needed to it cleaner
from shell-intune-samples.
Related Issues (20)
- New Microsoft Teams classic.app forcing Office365 app installs HOT 2
- Script to Install XCode
- Intune reporting error when using runMDATPQuickScan.sh HOT 2
- M365 Profile Photo Sync
- When onboarding MDE on Macs using the macOS shell scripts, the version of the MDE installed in quite old
- Zoom URLs pointing to commercial version now HOT 1
- macOS - Kernal Panic when executing addAppstoDock.sh shell script during Intune ADE HOT 6
- macOS - Intune executing addAppstoDock.sh shell script as _mbsetupuser instead of logged in user HOT 3
- installDMGPKG:46: no matches found: HOT 1
- Splashscreen status update HOT 1
- Set up a screensaver time and force password
- Issue when installing Adobe Creative Cloud Package through Intune with Script
- Visual Studio Code not installed as Universal App HOT 1
- Github Desktop installation script does not work HOT 2
- Add Apps to Dock script does not work HOT 5
- Linux custom compliance script returning null HOT 2
- Update check logic leaves Octory in limbo
- Update rename script to include mac studio HOT 1
- Edge Failing to Download HOT 3
- Syntax error when running downgradeUsertoStandard.sh HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shell-intune-samples.