Powershell command for adding the package

Dear All, 
Am using SCCM 2007 and Powershell v1.0. First thing I would like to ask is does the version of powershell and sccm are interdependent? Why beacuse, am searching for the cmdlet to add the package to the distribution point. Still I didn't get the command to
add. All the commands that I got are used in sccm2012 and powershell v3.0. When I use any of the commands, am getting "System.String() does not contain this method" as the error. I searched in Powershell prompt to get the list of cmdlets used. I
did not find any relative command to add the package to the dp. 
Please help. 
Parameswaran.

make use of the powershell script avilable here on http://eskonr.com/2014/02/configmgr-2012powershell-script-add-packages-applicationsdrivers-to-distribution-point-2/
Eswar Koneti | Configmgr blog:
www.eskonr.com | Linkedin: Eswar Koneti
| Twitter: Eskonr

Similar Messages

  • Powershell command for adding permissions in the "winrm configsddl wmi" menu

    Hello,
    I was wondering if there was any powershell command that would be the equivalent of adding a user in the menu brought up by typing
    winrm configsddl wmi
    I want to be able to add Read permission for users.
    Thanks,
    Brian

    Hi Brian,
    You can try to create and add the user to the local group which has been set as the read permission of the "http://schemas.microsoft.com/wbem/wsman/1/wmi".
    To add local users to local group in powershell, please refer to this thread:
    Adding local user accounts to Local administrator group:
    http://powershell.com/cs/forums/t/6369.aspx
    I hope this helps.

  • Powershell Command for global package update?

    Dear Community,
    at the moment I'm testing some packages on my development system without any App-V infrastructure in use.
    So I create my package on the sequencer and use this powershell command to publish the package:
    Add-AppvClientPackage -Path <Path to App-V Share> | Mount-AppVClientPackage | Publish-AppvClientPackage -Global
    This works fine and I'm able to test my application. But I don't know the PowerShell command to update an existing package on my system.
    Any help appreciated!
    Thanks,
    Hoba

    We are talking different things.
    Providing a new version for an already existing package does not remove the previous from disk (for instance people might be using version 1 while other people use version 2 on the same machine).
    If you want to fully remove version 1 then yes, do the command RalJans said.  It is my understanding that the App-V client is smart enough to stream only the 'new' bits from version 2, so even though they both remain on disk you aren't necessarily eating
    up 2x the diskspace.  I'm sure you could override that by mounting, etc.
    As for your question about unpublishing, I've always had it recommended to perform an unpublish and remove because remove only will leave behind certain things, so unpublishing is cleaner.  And yes be careful, the -all refers to all packages on the
    machine, it is not part of the package name.
    I don't know what you mean by refresh options.  The way upgrading works is by 2 packages containing the same package GUID but a different package GUID that both get added|published to the same machine.  You don't have to (you also don't get to)
    choose which package is a new version.  For example, you may consider it a new version, but if you had to go back to the sequencer and start over from scratch, the App-V Client will not allow you to treat them as the same package.

  • What is the powershell command to get the user count in Active Directory

    What is the powershell command to get the user count in Active Directory

    Get-ADuser
    REF: http://blogs.technet.com/b/heyscriptingguy/archive/2012/10/30/powertip-single-line-powershell-command-to-list-all-users-in-an-ou.aspx
    This post is provided AS IS with no warranties or guarantees, and confers no rights.
    ~~~
    Questo post non fornisce garanzie e non conferisce diritti

  • Shell command for opening the PDF

    Is there any shell command for opening the PDF Directly from Webdynpro...
    thanks and regards
    Dhinakar

    Hi,
       This is not possible in WD. That is because you cannot trigger anything on the client side in WD.
    Regards,
    Satyajit.

  • Would like to automate this Powershell command that sets the UPN of all mail enabled users

    I have command that changes the UPN of all mailbox users
    Get-ADUser -Filter * -properties homemdb | where {$_.homemdb -ne $null} | ForEach-Object ($_.SamAccountName) {$CompleteUPN = $_.SamAccountName + “@contoso.com”; Set-ADUser -Identity $_.DistinguishedName -UserPrincipalName $CompleteUPN}
    The command works using the AD module for
    powershell. What I would like to do it write a script that does the following.
    Runs the command above
    Only applies changes to users that need it. (I think this applies the setting to all users with the "homemdb")
    I was thinking of setting it as a scheduled task on one of the Domain Controllers. My
    powershell skills are lacking at best, so any guidance on how to set this up would be much appreciated. 
    Thanks

    Cannot bind parameter 'Filter' to the target.
    Exception setting "Filter":
    "Invalid filter syntax. For a description of
    the filter parameter syntax see the command help.
    "(RecipientType -eq
    'UserMailbox') -and
    (UserPrincipalName -notlike
    ('*@{1}' -f $UPNSuffix))" at position 68."
        + CategoryInfo         
    : WriteError:
    (:) [Get-User],
    ParameterBindingException
        + FullyQualifiedErrorId
    : ParameterBindingFailed,Microsoft.Exchange.Management.RecipientTasks.GetUser
    Read the error very carefully: "Invalid filter syntax"
    You filter: "(RecipientType -eq
    'UserMailbox') -and
    (UserPrincipalName -notlike
    ('*@{1}' -f $UPNSuffix))"
    This is not a good filter for anything.
    This is not legal in a filter: (UserPrincipalName
    -notlike ('*@{1}'
    -f $UPNSuffix))"
    See filter syntax for rules on the limited support for PowerShell syntax.   filters are a subset.
    ¯\_(ツ)_/¯

  • Powershell commands for VM backups in 2012 vs 2008

    I have a powershell routine that is used by task scheduler that will shut down one or more Hyper-v VMs from a list, create a backup of the VHD file(s) then restart the VM(s).  It works great in 2008 but when I copied it over to a 2012 host, it
    didn't do anything.  I was wondering if powershell commands from 2008 still work in 2012 or if they've been completely rewritten.  If they are the same, then I'll assume "operator error" and keep trying.  If they have changed, then
    I know that I'll be spending my week googling around for how to use the new commands.  Thanks.

    Hello
    You can use below powershell comand for Server 2012 host.
    $backuppolicy = New-WBPolicy
    Get-WBVirtualMachine | Add-WBVirtualMachine -Policy $backuppolicy
    $targetfolder = New-WBBackupTarget -NetworkPath
    \\FileServerName\e$\BackupFolder -Credential (Get-Credential)
    Add-WBBackupTarget -Policy $backuppolicy -Target $targetfolder
    Set-WBSchedule -Policy $backuppolicy -Schedule 12:00,09:00
    $backuppolicy
    Set-WBPolicy $backkuppolicy
    Start-WBBackup -Policy $backuppolicy
    http://get-itlabs.com/ucretsiz-windows-hyper-v-server-2012-r2-backup/
    Ersin CAN - TAT MCSE - Private Cloud. www.get-itlabs.com

  • Need example vi using AT commands for dialing the modem at the remote end

    Can any one give example vi for dialing up a modem and sending data to remote end

    Hi sindhu6,
    Presuming that you are connected to your modem via a serial connection:
    I did find a forum related to your enquiry: http://forums.ni.com/t5/LabVIEW/AT-commands-in-labview/td-p/1213335
    And I did find an example from ni.com: http://zone.ni.com/devzone/cda/epd/p/id/2577
    Basically, what you need to do is to find out what are the AT commands used for your modem and send the command over using VISA related functions (e.g. VISA Read VI). You can send the command in a sequantial method. You can do this by using the method found in the first link. The best would be that you can create a state machine where by each case/state will consists of commands that you need to run in a sequence (let's say a sequence of AT commands for sending a message via TCP/IP communication).
    You can also use a sequence structure but I would not suggest that since you cannot stop the sequence half way and if your command is very long, this may look pretty messy for your code.
    The main question is:
    What is the version of your LabVIEW?
    What is the modem that you are using and how is your hardware setup is going to be (e.g. how did you communicate with your modem)? 
    Thank you
    Warmest regards,
    Lennard.C
    Learning new things everyday...

  • What is "Disk 2" for in the packaging for Premiere Elements 9? Content or installation need?

    I just got the Premiere Elements 9 yesterday and used "Disk 1" for the installation.  There is NOTHING that I found in the packaging materials to explain what "Disk 2" is used for.  Is it needed for further installation?  Content?  I hesitate to just put it in the DVD tray without knowing what it is to be used for.  I did download the full templates content last night (4 1/2 hours for nearly 5GB of a file).  Thanks for any information anyone can provide me.

    Bill,
    Thank you for your comments!  I figured that maybe, possibly someone in the
    Adobe higher up level might monitor the forums, see my posting(s) and see my
    point.  A few years ago I had gotten the second or third generation of
    Premiere and Photoshop Elements and have had them on my main computer.
    Still do. 
    I just got a laptop and earlier this spring I got a Flip HD Slide camcorder,
    but trying to convert those videos to burn on DVD has proven to be a pain.
    I only found one or two software packages that could convert the MPG4
    formats, and they take forever to format.  So I thought that I'd get PE9
    since I'd read that it had Flip video compatibility.  It did a good job
    yesterday doing what I wanted it to do in burning a DVD.
    I'm old school on labeling the installation disks.  Like you said, years ago
    Adobe (and other software companies, for that matter) had pretty good
    installation and reference cards for use.  I just wasn't quite sure what to
    do with Disk 2.  I got on the Live Chat yesterday morning with a ViJay Kanna
    and all he could come up with was to contact tech support.  So I called that
    800 number and got the message that it would be $39.95 for them to answer
    questions. 
    I decided that I'd better find a better way, so I hung up and found the PE9
    forum.  Posted my question and had a response in just a matter of minutes. 
    I'll certainly be checking in on the forums!  It is nice when other
    contributors actually provide good, solid information, advice, and support
    for each other!
    I just got back from our town square, using my Flip camcorder to get some
    shots of Santa arriving with his police escort to visit with some Fairfield
    children before heading off on his rounds.  I'm looking forward now to see
    what I can put together on PE9! 
    Have a great holiday and thank you for your support and thoughts.  They are
    much appreciated.  Maybe someone at Adobe will change their disk labels
    after all! That is one of my 'wishes' for Santa!
    Sincerely,
    Richard K Thompson
    Fairfield, Iowa

  • BR0252E Function mkdir() failed for adding the data file

    Dear experts.
      I assigned new file to data file, i face below error
    BR0280I BRSPACE time stamp: 2010-12-15 10.38.26
    BR0681I Enter string value for "file" (<file>|<sapdata>|<N>) [/oracle/DBP/sapdata7/sr3_70/sr3.data69]:
    /oracle/DBP/sapdata8/sr3_70/sr3.data69
    BR0280I BRSPACE time stamp: 2010-12-15 10.38.46
    BR0683I New value for "file": '/oracle/DBP/sapdata8/sr3_70/sr3.data69'
    Error
    BR0252E Function mkdir() failed for '/oracle/DBP/sapdata8/sr3_70' at location BrDirCreate-1
    BR0253E errno 13: Permission denied
    Regards,
    kalees

    >>BR0252E Function mkdir() failed for '/oracle/DBP/sapdata8/sr3_70' at location BrDirCreate-1
    Make sure the sapdata8 is owned by ora<SID> and dba group.
    and you are adding the datafile using ora<SID> userID.

  • The underlying connection was closed: An unexpected error occurred on a receive..Exception.Message - while executing powershell command for sharepoint online site

    " +The underlying connection was closed: An unexpected error occurred on a receive..Exception.Message " OR sometimes
    "The remote server returned an error: (503) Server Unavailable..Exception.Message"
    Getting exception above when performing various operation (site coll creating, group creation, adding users to group) for sharepoint online (Office 365) site using powershell script.
    I want to create 3500 site collections using PS script. In-between getting above exception so it will skip one site collection creating and working again. for eg. after creating 11 site coll, script will through above exception and so 12th site coll will
    not be create but working fine from 13 and so on...

    Remote server seems working to me...any additional check?
    if problem with remote server then may be loop to create site provisioning should not start again..Right?
    any idea?

  • Is there PowerShell Command to Display the Active vHBA WWPN for a VM?

    Hello,
    I am running a Hyper-V cluster with a VM that I have setup to run NPIV for its data volumes...!  I have been searching for a PS cmlet that will display the active vHBA WWPN for the VM but can find anything. 
    Still Hunting! 

    Hi Webrat,
    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Thank you for your understanding and support.
    Best Regards
    Elton Ji
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • A script for adding the current date to file name?

    I am working in Indesign CS3. I frequently save file as PDFs into a designated folder. I was hoping for help in writing a script that would apply the current date to the end of the file name, when saved into this folder. Some days, I save the same file several times, into this folder. I was also hoping there was a way to add a date and version, for example "filename_2.25.11(1).pdf" Is this possible? Can someone help me?

    ok, I ended up with this test routine:
    on adding folder items to this_folder after receiving added_items
    tell application "Finder"
    repeat with this in added_items
    my checkifopened(this)
    display dialog (name of this) as text
    end repeat
    end tell
    end adding folder items to
    on checkifopened(this)
    set a to POSIX path of (this as alias)
    repeat until 1 = 0
    ## don't like that one because it relies on an error msg ... so
    (** try
    set b to do shell script "lsof | grep " & quoted form of a
    on error
    exit repeat
    end try**)
    ##so I use this one
    set b to do shell script "lsof"
    if b does not contain a then
    exit repeat
    else
    say "still opened"
    end if
    end repeat
    end checkifopened
    this is a folder action that tests if the added file is still opened by an application... there is no delay between each test-loop since lsof takes some time to execute...
    And after adding a timeout (just in case) to this function the final script looks like this:
    on adding folder items to thefolder after receiving added_items
    tell application "Finder"
    set folderkind to kind of thefolder
    set myfiles to every item of thefolder whose name does not contain "#" and kind is not folderkind
    repeat with myfile in myfiles
    set myfile_datestring to my get_datestring(creation date of myfile)
    set myfilename to name of myfile
    if (count of every character of myfilename) > 4 and (character -4 of myfilename) as text is "." then
    set filestatus to my checkifopened(myfile, 60)
    if filestatus = false then
    display dialog "timeout on folder action"
    else
    set tmp to ((characters 1 through -5 of myfilename) & "#" & myfile_datestring & (characters -4 through -1 of myfilename)) as text
    set myfilename to my checknamewith_pdfsuffix(tmp, thefolder, false)
    set name of myfile to myfilename
    end if
    end if
    end repeat
    end tell
    end adding folder items to
    on get_datestring(mydate)
    return year of mydate & "-" & (characters -2 through -1 of (("0" & (month of mydate as integer)) as text)) & "-" & (characters -2 through -1 of (("0" & (day of mydate as integer)) as text)) as text
    end get_datestring
    on checknamewith_pdfsuffix(n, D, looped)
    --check if filename exists in D
    -- so if "A File.pdf" exists it names it "A File 1.pdf","A File 2.pdf",...
    #n = string of the filename
    #D = file reference to the directory to check
    #looped = boolean used for recursive loop...
    tell application "Finder"
    set thefiles to name of every item of (D as alias)
    end tell
    if thefiles contains n then
    if looped = false then
    set n to ((characters 1 through -5 of n) & "(1)" & (characters -4 through -1 of n)) as text
    my checknamewith_pdfsuffix(n, D, true)
    else
    set tmp to (last word of ((characters 1 through -5 of n) as text) as integer)
    set tmpcount to (count of characters of (tmp as text)) + 5
    set tmp to tmp + 1
    set n to ((characters 1 through (-1 * tmpcount) of n) & "(" & tmp & ")" & (characters -4 through -1 of n)) as text
    my checknamewith_pdfsuffix(n, D, true)
    end if
    else
    return n
    end if
    end checknamewith_pdfsuffix
    on checkifopened(this, mytimeout)
    ## this file reference
    ## timeout in seconds
    set a to POSIX path of (this as alias)
    set startdate to current date
    repeat until 1 = 0
    ## don't like that one because it relies on an error msg ... so
    (** try
    set b to do shell script "lsof | grep " & quoted form of a
    on error
    exit repeat
    end try**)
    ##so I use this one
    set b to do shell script "lsof"
    if b does not contain a then
    return true
    else if ((current date) - startdate) > mytimeout then
    return false
    else
    ##say "still opened"
    end if
    end repeat
    end checkifopened
    to use this save this script in /Library/Scripts/Folder Action Scripts
    and add this as a folder action to your folder...
    The script processes all files inside that folder each time a new files is added...

  • Is there a command for setting the selection option to be mandatory

    hi,
    i have a 4 select-option in my program, and i would set that, either one select option must be fill to execute the program. which mean, at least one field ( any select option) have to be enter, or else it will not run. is there a command to restrict on this?
    please help. thanks

    Check this sample
    TABLES : vbap.
    SELECT-OPTIONS : so_vbeln FOR vbap-vbeln,
                     so_posnr FOR vbap-posnr.
    AT SELECTION-SCREEN.
      IF NOT so_vbeln[] IS INITIAL OR
         NOT so_posnr[] IS INITIAL.
      ELSE.
        MESSAGE e000(ztest_gopi) WITH 'Atleast one shd be filled'.
      ENDIF.
    " OR You can do it this way also
    TABLES : vbap.
    SELECT-OPTIONS : so_vbeln FOR vbap-vbeln,
                     so_posnr FOR vbap-posnr.
    AT SELECTION-SCREEN.
      IF so_vbeln[] IS INITIAL AND
         so_posnr[] IS INITIAL.
        MESSAGE e000(ztest_gopi) WITH 'Atleast one shd be filled'.
      ENDIF.
    Regards
    Gopi

  • PowerShell Script for Setting the Welcome Page View of a document set

    Hi,
    We are using document set in the document library and we have created the separate view in the document set and it will show only particular metadata columns. We need to change from default view to another view. For this, we need to write the power shell
    script and update the document set welcome page view link in the document set template. Please let me know how we can get this.
    Thanks,
    Mylsamy

    Hey Mylsamy,
    welcome page view is stored in $contenttype.XmlDocuments. Here is how you can change the view using powershell:
    $web = Get-SPWeb "WEBURL"
    $list = $web.Lists["LISTNAME"]
    $contenttype = $list.ContentTypes["CONTENTYPENAME"]
    $viewid = $list.Views["VIEWNAME"].Id
    $xmldocs = $contenttype.XmlDocuments
    foreach($xmldoc in $xmldocs)
    if($xmldoc.Contains("WelcomePageView"))
    Write-Host "XML contains WPV"
    $newview = [XML] @"
    <wpv:WelcomePageView xmlns:wpv="http://schemas.microsoft.com/office/documentsets/welcomepageview" ViewId="$viewid" />
    $xmldocs.Delete("http://schemas.microsoft.com/office/documentsets/welcomepageview")
    $xmldocs.Add($newview)
    break;
    $contenttype.Update($updateChildren, $false)
    Write-Host "Welcome Page View updated at " $list.Title
    Regards,
    Alexander 

Maybe you are looking for

  • 10.8.2 (and above) Kernel Panics on wake

    Hello everyone, I have recurring kernel panics after waking my MacBook Pro 13 (late 2010) from sleep. Here is the log: Sun Jul 28 18:58:02 2013 panic(cpu 0 caller 0xffffff80140b8655): Kernel trap at 0xffffff7f94b00d5e, type 14=page fault, registers:

  • How to upload Apex-application in this forum

    i want a help. i develop a apex-applicatin . by use apex-4.2. now i want to upload my app: in this forum. how to i do it? plz give me suggest.

  • Why are some details not updating?

    Hi there, I have tweaked my RSS feed xml file a few times since I first submitted my podcast to iTunes for approval. Some of the details, such as the name of the podcast has changed but others, such as the description, have not. What cld be the reaso

  • How can I activate my new, unlocked iPhone 4, without a voice/data plan?

    Purchased a new, unlocked iPhone 4 directly from apple.com. We're going to be using it for in-house testing, and we don't want/need a service plan. But we can't activate the phone without a SIM card. The only decent advice we've gotten is to activate

  • Repository synchronization between two sites

    Hi All, We are using Oracle Designer 6i for our designs. We are creating DFDs, PFDs and ERDs. Two teams are working on this at two different locations. Can somebody suggest the way to synchronize (combine) the work done by both the teams into a singl