-->

ABOUT US

Our development agency is committed to providing you the best service.

OUR TEAM

The awesome people behind our brand ... and their life motto.

  • Kumar Atul Jaiswal

    Ethical Hacker

    Hacking is a Speed of Innovation And Technology with Romance.

  • Kumar Atul Jaiswal

    CEO Of Hacking Truth

    Loopholes are every major Security,Just need to Understand it well.

  • Kumar Atul Jaiswal

    Web Developer

    Techonology is the best way to Change Everything, like Mindset Goal.

OUR SKILLS

We pride ourselves with strong, flexible and top notch skills.

Marketing

Development 90%
Design 80%
Marketing 70%

Websites

Development 90%
Design 80%
Marketing 70%

PR

Development 90%
Design 80%
Marketing 70%

ACHIEVEMENTS

We help our clients integrate, analyze, and use their data to improve their business.

150

GREAT PROJECTS

300

HAPPY CLIENTS

650

COFFEES DRUNK

1568

FACEBOOK LIKES

STRATEGY & CREATIVITY

Phasellus iaculis dolor nec urna nullam. Vivamus mattis blandit porttitor nullam.

PORTFOLIO

We pride ourselves on bringing a fresh perspective and effective marketing to each project.

Showing posts with label powershell. Show all posts
Showing posts with label powershell. Show all posts
  • How to identify my wbs chargecode in powershell windows 11

     

    How to identify my wbs chargecode in powershell windows 11


    How to identify my wbs chargecode in powershell


    A WBS (Work Breakdown Structure) / Charge code is usually not something Powershell can 'discover' automatically from your system because it's company-specific financial/project data (Stored in tools like SAP, ServiceNow, internal portals, or time-tracking systems).


    1. Check Environment Variables (if your organization uses them)

    Some companies push project/charge codes as environment variables.


    Get-ChildItem Env:
    
    
    


    Look for anything like:

    • WBS
    • CHARGECODE
    • PROJECT
    • COSTCENTER



    2. Check Active Directory (if stored in AD)


    Sometimes WBS/cost center is stored as a user attribute.



    Get-ADUser -Identity $env:USERNAME -Properties *
    
    
    


    Look for fields like:

    • department
    • extensionAttributeX
    • employeeID
    • costCenter



    Filter only relevant fields:


    Get-ADUser -Identity $env:USERNAME -Properties  department,extensionAttribute1,extensionAttribute2



    If you got error like as you can see the image below so in screenshot, the error is very clear:

    Get-ADUser : The term 'Get-ADUser' is not recognized



    How to identify my wbs chargecode in powershell windows 11


    ✅ What this means


    Your PowerShell does not have the Active Directory module installed or loaded.

    Get-ADUser comes from the ActiveDirectory module, which is:

    • ✅ Available on domain-joined machines with RSAT installed
    • ❌ Not available by default on normal Windows installs



    ✅ Fix it (step-by-step)


    🔹 Option 1: Check if module exists but not loaded

    Get-Module -ListAvailable ActiveDirectory


    How to identify my wbs chargecode in powershell windows 11


    👉 If you see output well and good but if you are not seeing then leave it as of now.

    Then just import it:

    Import-Module ActiveDirectory


    Option 2: Install RSAT (Most likely needed)


    Since you’re a IT Support Engineer, this is probably your case.

    Run:


    Get-WindowsCapability -Name RSAT.ActiveDirectory* -Online
    
    
    


    How to identify my wbs chargecode in powershell windows 11


    Install it:


    Add-WindowsCapability -Online -Name RSAT.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0
    
    
    


    How to identify my wbs chargecode in powershell windows 11



    Option 3: If installation is blocked


    In many corporate environments:

    ❌ You may NOT have permission to install RSAT

    👉 Then:

    Ask IT:

    "Please enable RSAT Active Directory PowerShell module on my machine"


    ✅ After fixing


    Use this correct command 

    👉 Environment variables cannot start with numbers

    ✅ Correct version:

    If your username is your ID:


    Get-ADUser -Identity $env:USERNAME -Properties *
    

    Or explicitly:


    Get-ADUser -Identity 221843 -Properties *
    
    
    



    How to identify my wbs chargecode in powershell windows 11



    How to identify my wbs chargecode in powershell windows 11


    Filter WBS / Charge info (after it works)


    Get-ADUser -Identity $env:USERNAME -Properties * |
    Select-Object Name, Department, Title, extensionAttribute1, extensionAttribute2
    



    Disclaimer



    All tutorials are for informational and educational purposes only and have been made using our own routers, servers, websites and other vulnerable free resources. we do not contain any illegal activity. We believe that ethical hacking, information security and cyber security should be familiar subjects to anyone using digital information and computers. Hacking Truth is against misuse of the information and we strongly suggest against it. Please regard the word hacking as ethical hacking or penetration testing every time this word is used. We do not promote, encourage, support or excite any illegal activity or hacking.




  • WHAT WE DO

    We've been developing corporate tailored services for clients for 30 years.

    CONTACT US

    For enquiries you can contact us in several different ways. Contact details are below.

    Hacking Truth.in

    • Street :Road Street 00
    • Person :Person
    • Phone :+045 123 755 755
    • Country :POLAND
    • Email :contact@heaven.com

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.